Mercurial > pt1
comparison driver/pt1_pci.c @ 93:ee357d8f987f
suppress silly warning
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 28 Jan 2010 15:54:04 +0900 |
parents | c6311b6efd9c |
children | a201531113ca |
comparison
equal
deleted
inserted
replaced
92:1086bec1a684 | 93:ee357d8f987f |
---|---|
40 #include "pt1_tuner_data.h" | 40 #include "pt1_tuner_data.h" |
41 #include "pt1_ioctl.h" | 41 #include "pt1_ioctl.h" |
42 | 42 |
43 /* These identify the driver base version and may not be removed. */ | 43 /* These identify the driver base version and may not be removed. */ |
44 static char version[] __devinitdata = | 44 static char version[] __devinitdata = |
45 KERN_INFO DRV_NAME ".c: " DRV_VERSION " " DRV_RELDATE " \n"; | 45 DRV_NAME ".c: " DRV_VERSION " " DRV_RELDATE " \n"; |
46 | 46 |
47 MODULE_AUTHOR("Tomoaki Ishikawa tomy@users.sourceforge.jp and Yoshiki Yazawa yaz@honeyplanet.jp"); | 47 MODULE_AUTHOR("Tomoaki Ishikawa tomy@users.sourceforge.jp and Yoshiki Yazawa yaz@honeyplanet.jp"); |
48 #define DRIVER_DESC "PCI earthsoft PT1/2 driver" | 48 #define DRIVER_DESC "PCI earthsoft PT1/2 driver" |
49 MODULE_DESCRIPTION(DRIVER_DESC); | 49 MODULE_DESCRIPTION(DRIVER_DESC); |
50 MODULE_LICENSE("GPL"); | 50 MODULE_LICENSE("GPL"); |
929 }; | 929 }; |
930 | 930 |
931 | 931 |
932 static int __init pt1_pci_init(void) | 932 static int __init pt1_pci_init(void) |
933 { | 933 { |
934 printk(version); | 934 printk(KERN_INFO "%s", version); |
935 pt1video_class = class_create(THIS_MODULE, DRIVERNAME); | 935 pt1video_class = class_create(THIS_MODULE, DRIVERNAME); |
936 if (IS_ERR(pt1video_class)) | 936 if (IS_ERR(pt1video_class)) |
937 return PTR_ERR(pt1video_class); | 937 return PTR_ERR(pt1video_class); |
938 return pci_register_driver(&pt1_driver); | 938 return pci_register_driver(&pt1_driver); |
939 } | 939 } |