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/misc | |
| 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/misc')
| -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 |
4 files changed, 4 insertions, 68 deletions
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 | ||
