diff options
| author | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-06 14:42:52 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-06 14:42:52 -0500 |
| commit | ff4b8a57f0aaa2882d444ca44b2b9b333d22a4df (patch) | |
| tree | d851c923f85566572112d4c0f884cff388a3cc05 /drivers/input | |
| parent | 805a6af8dba5dfdd35ec35dc52ec0122400b2610 (diff) | |
| parent | ea04018e6bc5ddb2f0466c0e5b986bd4901b7e8e (diff) | |
Merge branch 'driver-core-next' into Linux 3.2
This resolves the conflict in the arch/arm/mach-s3c64xx/s3c6400.c file,
and it fixes the build error in the arch/x86/kernel/microcode_core.c
file, that the merge did not catch.
The microcode_core.c patch was provided by Stephen Rothwell
<sfr@canb.auug.org.au> who was invaluable in the merge issues involved
with the large sysdev removal process in the driver-core tree.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/input')
| -rw-r--r-- | drivers/input/joystick/xpad.c | 13 | ||||
| -rw-r--r-- | drivers/input/misc/ati_remote2.c | 21 | ||||
| -rw-r--r-- | drivers/input/misc/keyspan_remote.c | 21 | ||||
| -rw-r--r-- | drivers/input/misc/powermate.c | 13 | ||||
| -rw-r--r-- | drivers/input/misc/yealink.c | 17 | ||||
| -rw-r--r-- | drivers/input/mouse/appletouch.c | 13 | ||||
| -rw-r--r-- | drivers/input/mouse/bcm5974.c | 14 | ||||
| -rw-r--r-- | drivers/input/tablet/acecad.c | 17 | ||||
| -rw-r--r-- | drivers/input/tablet/aiptek.c | 19 | ||||
| -rw-r--r-- | drivers/input/tablet/gtco.c | 28 | ||||
| -rw-r--r-- | drivers/input/tablet/hanwang.c | 13 | ||||
| -rw-r--r-- | drivers/input/tablet/kbtab.c | 20 | ||||
| -rw-r--r-- | drivers/input/tablet/wacom_sys.c | 19 | ||||
| -rw-r--r-- | drivers/input/touchscreen/usbtouchscreen.c | 13 |
14 files changed, 14 insertions, 227 deletions
diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index d72887585a14..32bbd4c77b7c 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c | |||
| @@ -1041,18 +1041,7 @@ static struct usb_driver xpad_driver = { | |||
| 1041 | .id_table = xpad_table, | 1041 | .id_table = xpad_table, |
| 1042 | }; | 1042 | }; |
| 1043 | 1043 | ||
| 1044 | static int __init usb_xpad_init(void) | 1044 | module_usb_driver(xpad_driver); |
| 1045 | { | ||
| 1046 | return usb_register(&xpad_driver); | ||
| 1047 | } | ||
| 1048 | |||
| 1049 | static void __exit usb_xpad_exit(void) | ||
| 1050 | { | ||
| 1051 | usb_deregister(&xpad_driver); | ||
| 1052 | } | ||
| 1053 | |||
| 1054 | module_init(usb_xpad_init); | ||
| 1055 | module_exit(usb_xpad_exit); | ||
| 1056 | 1045 | ||
| 1057 | MODULE_AUTHOR(DRIVER_AUTHOR); | 1046 | MODULE_AUTHOR(DRIVER_AUTHOR); |
| 1058 | MODULE_DESCRIPTION(DRIVER_DESC); | 1047 | MODULE_DESCRIPTION(DRIVER_DESC); |
diff --git a/drivers/input/misc/ati_remote2.c b/drivers/input/misc/ati_remote2.c index 8d345e87075e..874a51c2fbb2 100644 --- a/drivers/input/misc/ati_remote2.c +++ b/drivers/input/misc/ati_remote2.c | |||
| @@ -1010,23 +1010,4 @@ static int ati_remote2_post_reset(struct usb_interface *interface) | |||
| 1010 | return r; | 1010 | return r; |
| 1011 | } | 1011 | } |
| 1012 | 1012 | ||
| 1013 | static int __init ati_remote2_init(void) | 1013 | module_usb_driver(ati_remote2_driver); |
| 1014 | { | ||
| 1015 | int r; | ||
| 1016 | |||
| 1017 | r = usb_register(&ati_remote2_driver); | ||
| 1018 | if (r) | ||
| 1019 | printk(KERN_ERR "ati_remote2: usb_register() = %d\n", r); | ||
| 1020 | else | ||
| 1021 | printk(KERN_INFO "ati_remote2: " DRIVER_DESC " " DRIVER_VERSION "\n"); | ||
| 1022 | |||
| 1023 | return r; | ||
| 1024 | } | ||
| 1025 | |||
| 1026 | static void __exit ati_remote2_exit(void) | ||
| 1027 | { | ||
| 1028 | usb_deregister(&ati_remote2_driver); | ||
| 1029 | } | ||
| 1030 | |||
| 1031 | module_init(ati_remote2_init); | ||
| 1032 | module_exit(ati_remote2_exit); | ||
diff --git a/drivers/input/misc/keyspan_remote.c b/drivers/input/misc/keyspan_remote.c index fc62256c963f..d99151a8bf10 100644 --- a/drivers/input/misc/keyspan_remote.c +++ b/drivers/input/misc/keyspan_remote.c | |||
| @@ -580,26 +580,7 @@ static struct usb_driver keyspan_driver = | |||
| 580 | .id_table = keyspan_table | 580 | .id_table = keyspan_table |
| 581 | }; | 581 | }; |
| 582 | 582 | ||
| 583 | static int __init usb_keyspan_init(void) | 583 | module_usb_driver(keyspan_driver); |
| 584 | { | ||
| 585 | int result; | ||
| 586 | |||
| 587 | /* register this driver with the USB subsystem */ | ||
| 588 | result = usb_register(&keyspan_driver); | ||
| 589 | if (result) | ||
| 590 | err("usb_register failed. Error number %d\n", result); | ||
| 591 | |||
| 592 | return result; | ||
| 593 | } | ||
| 594 | |||
| 595 | static void __exit usb_keyspan_exit(void) | ||
| 596 | { | ||
| 597 | /* deregister this driver with the USB subsystem */ | ||
| 598 | usb_deregister(&keyspan_driver); | ||
| 599 | } | ||
| 600 | |||
| 601 | module_init(usb_keyspan_init); | ||
| 602 | module_exit(usb_keyspan_exit); | ||
| 603 | 584 | ||
| 604 | MODULE_DEVICE_TABLE(usb, keyspan_table); | 585 | MODULE_DEVICE_TABLE(usb, keyspan_table); |
| 605 | MODULE_AUTHOR(DRIVER_AUTHOR); | 586 | MODULE_AUTHOR(DRIVER_AUTHOR); |
diff --git a/drivers/input/misc/powermate.c b/drivers/input/misc/powermate.c index f45947190e4f..538f7049ec64 100644 --- a/drivers/input/misc/powermate.c +++ b/drivers/input/misc/powermate.c | |||
| @@ -441,18 +441,7 @@ static struct usb_driver powermate_driver = { | |||
| 441 | .id_table = powermate_devices, | 441 | .id_table = powermate_devices, |
| 442 | }; | 442 | }; |
| 443 | 443 | ||
| 444 | static int __init powermate_init(void) | 444 | module_usb_driver(powermate_driver); |
| 445 | { | ||
| 446 | return usb_register(&powermate_driver); | ||
| 447 | } | ||
| 448 | |||
| 449 | static void __exit powermate_cleanup(void) | ||
| 450 | { | ||
| 451 | usb_deregister(&powermate_driver); | ||
| 452 | } | ||
| 453 | |||
| 454 | module_init(powermate_init); | ||
| 455 | module_exit(powermate_cleanup); | ||
| 456 | 445 | ||
| 457 | MODULE_AUTHOR( "William R Sowerbutts" ); | 446 | MODULE_AUTHOR( "William R Sowerbutts" ); |
| 458 | MODULE_DESCRIPTION( "Griffin Technology, Inc PowerMate driver" ); | 447 | MODULE_DESCRIPTION( "Griffin Technology, Inc PowerMate driver" ); |
diff --git a/drivers/input/misc/yealink.c b/drivers/input/misc/yealink.c index 41201c6b5e68..f4776e7f8c15 100644 --- a/drivers/input/misc/yealink.c +++ b/drivers/input/misc/yealink.c | |||
| @@ -988,22 +988,7 @@ static struct usb_driver yealink_driver = { | |||
| 988 | .id_table = usb_table, | 988 | .id_table = usb_table, |
| 989 | }; | 989 | }; |
| 990 | 990 | ||
| 991 | static int __init yealink_dev_init(void) | 991 | module_usb_driver(yealink_driver); |
| 992 | { | ||
| 993 | int ret = usb_register(&yealink_driver); | ||
| 994 | if (ret == 0) | ||
| 995 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" | ||
| 996 | DRIVER_DESC "\n"); | ||
| 997 | return ret; | ||
| 998 | } | ||
| 999 | |||
| 1000 | static void __exit yealink_dev_exit(void) | ||
| 1001 | { | ||
| 1002 | usb_deregister(&yealink_driver); | ||
| 1003 | } | ||
| 1004 | |||
| 1005 | module_init(yealink_dev_init); | ||
| 1006 | module_exit(yealink_dev_exit); | ||
| 1007 | 992 | ||
| 1008 | MODULE_DEVICE_TABLE (usb, usb_table); | 993 | MODULE_DEVICE_TABLE (usb, usb_table); |
| 1009 | 994 | ||
diff --git a/drivers/input/mouse/appletouch.c b/drivers/input/mouse/appletouch.c index b77f9991278e..0acbc7d50d05 100644 --- a/drivers/input/mouse/appletouch.c +++ b/drivers/input/mouse/appletouch.c | |||
| @@ -938,15 +938,4 @@ static struct usb_driver atp_driver = { | |||
| 938 | .id_table = atp_table, | 938 | .id_table = atp_table, |
| 939 | }; | 939 | }; |
| 940 | 940 | ||
| 941 | static int __init atp_init(void) | 941 | module_usb_driver(atp_driver); |
| 942 | { | ||
| 943 | return usb_register(&atp_driver); | ||
| 944 | } | ||
| 945 | |||
| 946 | static void __exit atp_exit(void) | ||
| 947 | { | ||
| 948 | usb_deregister(&atp_driver); | ||
| 949 | } | ||
| 950 | |||
| 951 | module_init(atp_init); | ||
| 952 | module_exit(atp_exit); | ||
diff --git a/drivers/input/mouse/bcm5974.c b/drivers/input/mouse/bcm5974.c index 5ec617e28f7e..cf87f8b18e34 100644 --- a/drivers/input/mouse/bcm5974.c +++ b/drivers/input/mouse/bcm5974.c | |||
| @@ -940,16 +940,4 @@ static struct usb_driver bcm5974_driver = { | |||
| 940 | .supports_autosuspend = 1, | 940 | .supports_autosuspend = 1, |
| 941 | }; | 941 | }; |
| 942 | 942 | ||
| 943 | static int __init bcm5974_init(void) | 943 | module_usb_driver(bcm5974_driver); |
| 944 | { | ||
| 945 | return usb_register(&bcm5974_driver); | ||
| 946 | } | ||
| 947 | |||
| 948 | static void __exit bcm5974_exit(void) | ||
| 949 | { | ||
| 950 | usb_deregister(&bcm5974_driver); | ||
| 951 | } | ||
| 952 | |||
| 953 | module_init(bcm5974_init); | ||
| 954 | module_exit(bcm5974_exit); | ||
| 955 | |||
diff --git a/drivers/input/tablet/acecad.c b/drivers/input/tablet/acecad.c index d94f7e9aa997..f8b0b1df9138 100644 --- a/drivers/input/tablet/acecad.c +++ b/drivers/input/tablet/acecad.c | |||
| @@ -269,19 +269,4 @@ static struct usb_driver usb_acecad_driver = { | |||
| 269 | .id_table = usb_acecad_id_table, | 269 | .id_table = usb_acecad_id_table, |
| 270 | }; | 270 | }; |
| 271 | 271 | ||
| 272 | static int __init usb_acecad_init(void) | 272 | module_usb_driver(usb_acecad_driver); |
| 273 | { | ||
| 274 | int result = usb_register(&usb_acecad_driver); | ||
| 275 | if (result == 0) | ||
| 276 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" | ||
| 277 | DRIVER_DESC "\n"); | ||
| 278 | return result; | ||
| 279 | } | ||
| 280 | |||
| 281 | static void __exit usb_acecad_exit(void) | ||
| 282 | { | ||
| 283 | usb_deregister(&usb_acecad_driver); | ||
| 284 | } | ||
| 285 | |||
| 286 | module_init(usb_acecad_init); | ||
| 287 | module_exit(usb_acecad_exit); | ||
diff --git a/drivers/input/tablet/aiptek.c b/drivers/input/tablet/aiptek.c index 6d89fd1842c3..d5ef3debd045 100644 --- a/drivers/input/tablet/aiptek.c +++ b/drivers/input/tablet/aiptek.c | |||
| @@ -1919,21 +1919,7 @@ static struct usb_driver aiptek_driver = { | |||
| 1919 | .id_table = aiptek_ids, | 1919 | .id_table = aiptek_ids, |
| 1920 | }; | 1920 | }; |
| 1921 | 1921 | ||
| 1922 | static int __init aiptek_init(void) | 1922 | module_usb_driver(aiptek_driver); |
| 1923 | { | ||
| 1924 | int result = usb_register(&aiptek_driver); | ||
| 1925 | if (result == 0) { | ||
| 1926 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" | ||
| 1927 | DRIVER_DESC "\n"); | ||
| 1928 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_AUTHOR "\n"); | ||
| 1929 | } | ||
| 1930 | return result; | ||
| 1931 | } | ||
| 1932 | |||
| 1933 | static void __exit aiptek_exit(void) | ||
| 1934 | { | ||
| 1935 | usb_deregister(&aiptek_driver); | ||
| 1936 | } | ||
| 1937 | 1923 | ||
| 1938 | MODULE_AUTHOR(DRIVER_AUTHOR); | 1924 | MODULE_AUTHOR(DRIVER_AUTHOR); |
| 1939 | MODULE_DESCRIPTION(DRIVER_DESC); | 1925 | MODULE_DESCRIPTION(DRIVER_DESC); |
| @@ -1943,6 +1929,3 @@ module_param(programmableDelay, int, 0); | |||
| 1943 | MODULE_PARM_DESC(programmableDelay, "delay used during tablet programming"); | 1929 | MODULE_PARM_DESC(programmableDelay, "delay used during tablet programming"); |
| 1944 | module_param(jitterDelay, int, 0); | 1930 | module_param(jitterDelay, int, 0); |
| 1945 | MODULE_PARM_DESC(jitterDelay, "stylus/mouse settlement delay"); | 1931 | MODULE_PARM_DESC(jitterDelay, "stylus/mouse settlement delay"); |
| 1946 | |||
| 1947 | module_init(aiptek_init); | ||
| 1948 | module_exit(aiptek_exit); | ||
diff --git a/drivers/input/tablet/gtco.c b/drivers/input/tablet/gtco.c index 8ea6afe2e992..89a297801dce 100644 --- a/drivers/input/tablet/gtco.c +++ b/drivers/input/tablet/gtco.c | |||
| @@ -1022,33 +1022,7 @@ static struct usb_driver gtco_driverinfo_table = { | |||
| 1022 | .disconnect = gtco_disconnect, | 1022 | .disconnect = gtco_disconnect, |
| 1023 | }; | 1023 | }; |
| 1024 | 1024 | ||
| 1025 | /* | 1025 | module_usb_driver(gtco_driverinfo_table); |
| 1026 | * Register this module with the USB subsystem | ||
| 1027 | */ | ||
| 1028 | static int __init gtco_init(void) | ||
| 1029 | { | ||
| 1030 | int error; | ||
| 1031 | |||
| 1032 | error = usb_register(>co_driverinfo_table); | ||
| 1033 | if (error) { | ||
| 1034 | err("usb_register() failed rc=0x%x", error); | ||
| 1035 | return error; | ||
| 1036 | } | ||
| 1037 | |||
| 1038 | printk("GTCO usb driver version: %s", GTCO_VERSION); | ||
| 1039 | return 0; | ||
| 1040 | } | ||
| 1041 | |||
| 1042 | /* | ||
| 1043 | * Deregister this module with the USB subsystem | ||
| 1044 | */ | ||
| 1045 | static void __exit gtco_exit(void) | ||
| 1046 | { | ||
| 1047 | usb_deregister(>co_driverinfo_table); | ||
| 1048 | } | ||
| 1049 | |||
| 1050 | module_init(gtco_init); | ||
| 1051 | module_exit(gtco_exit); | ||
| 1052 | 1026 | ||
| 1053 | MODULE_DESCRIPTION("GTCO digitizer USB driver"); | 1027 | MODULE_DESCRIPTION("GTCO digitizer USB driver"); |
| 1054 | MODULE_LICENSE("GPL"); | 1028 | MODULE_LICENSE("GPL"); |
diff --git a/drivers/input/tablet/hanwang.c b/drivers/input/tablet/hanwang.c index 6504b627b234..b2db3cfe3084 100644 --- a/drivers/input/tablet/hanwang.c +++ b/drivers/input/tablet/hanwang.c | |||
| @@ -432,15 +432,4 @@ static struct usb_driver hanwang_driver = { | |||
| 432 | .id_table = hanwang_ids, | 432 | .id_table = hanwang_ids, |
| 433 | }; | 433 | }; |
| 434 | 434 | ||
| 435 | static int __init hanwang_init(void) | 435 | module_usb_driver(hanwang_driver); |
| 436 | { | ||
| 437 | return usb_register(&hanwang_driver); | ||
| 438 | } | ||
| 439 | |||
| 440 | static void __exit hanwang_exit(void) | ||
| 441 | { | ||
| 442 | usb_deregister(&hanwang_driver); | ||
| 443 | } | ||
| 444 | |||
| 445 | module_init(hanwang_init); | ||
| 446 | module_exit(hanwang_exit); | ||
diff --git a/drivers/input/tablet/kbtab.c b/drivers/input/tablet/kbtab.c index 290f4e57b589..85a5b40333ac 100644 --- a/drivers/input/tablet/kbtab.c +++ b/drivers/input/tablet/kbtab.c | |||
| @@ -198,22 +198,4 @@ static struct usb_driver kbtab_driver = { | |||
| 198 | .id_table = kbtab_ids, | 198 | .id_table = kbtab_ids, |
| 199 | }; | 199 | }; |
| 200 | 200 | ||
| 201 | static int __init kbtab_init(void) | 201 | module_usb_driver(kbtab_driver); |
| 202 | { | ||
| 203 | int retval; | ||
| 204 | retval = usb_register(&kbtab_driver); | ||
| 205 | if (retval) | ||
| 206 | goto out; | ||
| 207 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" | ||
| 208 | DRIVER_DESC "\n"); | ||
| 209 | out: | ||
| 210 | return retval; | ||
| 211 | } | ||
| 212 | |||
| 213 | static void __exit kbtab_exit(void) | ||
| 214 | { | ||
| 215 | usb_deregister(&kbtab_driver); | ||
| 216 | } | ||
| 217 | |||
| 218 | module_init(kbtab_init); | ||
| 219 | module_exit(kbtab_exit); | ||
diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c index 1c1b7b43cf92..8f9cde3e0ec2 100644 --- a/drivers/input/tablet/wacom_sys.c +++ b/drivers/input/tablet/wacom_sys.c | |||
| @@ -919,21 +919,4 @@ static struct usb_driver wacom_driver = { | |||
| 919 | .supports_autosuspend = 1, | 919 | .supports_autosuspend = 1, |
| 920 | }; | 920 | }; |
| 921 | 921 | ||
| 922 | static int __init wacom_init(void) | 922 | module_usb_driver(wacom_driver); |
| 923 | { | ||
| 924 | int result; | ||
| 925 | |||
| 926 | result = usb_register(&wacom_driver); | ||
| 927 | if (result == 0) | ||
| 928 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" | ||
| 929 | DRIVER_DESC "\n"); | ||
| 930 | return result; | ||
| 931 | } | ||
| 932 | |||
| 933 | static void __exit wacom_exit(void) | ||
| 934 | { | ||
| 935 | usb_deregister(&wacom_driver); | ||
| 936 | } | ||
| 937 | |||
| 938 | module_init(wacom_init); | ||
| 939 | module_exit(wacom_exit); | ||
diff --git a/drivers/input/touchscreen/usbtouchscreen.c b/drivers/input/touchscreen/usbtouchscreen.c index 73fd6642b681..e539d92cc626 100644 --- a/drivers/input/touchscreen/usbtouchscreen.c +++ b/drivers/input/touchscreen/usbtouchscreen.c | |||
| @@ -1580,18 +1580,7 @@ static struct usb_driver usbtouch_driver = { | |||
| 1580 | .supports_autosuspend = 1, | 1580 | .supports_autosuspend = 1, |
| 1581 | }; | 1581 | }; |
| 1582 | 1582 | ||
| 1583 | static int __init usbtouch_init(void) | 1583 | module_usb_driver(usbtouch_driver); |
| 1584 | { | ||
| 1585 | return usb_register(&usbtouch_driver); | ||
| 1586 | } | ||
| 1587 | |||
| 1588 | static void __exit usbtouch_cleanup(void) | ||
| 1589 | { | ||
| 1590 | usb_deregister(&usbtouch_driver); | ||
| 1591 | } | ||
| 1592 | |||
| 1593 | module_init(usbtouch_init); | ||
| 1594 | module_exit(usbtouch_cleanup); | ||
| 1595 | 1584 | ||
| 1596 | MODULE_AUTHOR(DRIVER_AUTHOR); | 1585 | MODULE_AUTHOR(DRIVER_AUTHOR); |
| 1597 | MODULE_DESCRIPTION(DRIVER_DESC); | 1586 | MODULE_DESCRIPTION(DRIVER_DESC); |
