diff options
author | Peter Huewe <PeterHuewe@gmx.de> | 2015-03-16 16:46:36 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-03-18 17:39:17 -0400 |
commit | 99f74f12e87426be0f83b87b5e46c1ec8b00bd0f (patch) | |
tree | a9b7581cc7fadc75fba57716a07ee2537683b870 | |
parent | ed03538aa8d5f03432ddd5ed73fc0ba2725af93d (diff) |
PNP: platform/x86/apple-gmux: Use module_pnp_driver to register driver
Removing some boilerplate by using module_pnp_driver instead of calling
register and unregister in the otherwise empty init/exit functions
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/platform/x86/apple-gmux.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/platform/x86/apple-gmux.c b/drivers/platform/x86/apple-gmux.c index b9429fbf1cd8..66d6d22c239c 100644 --- a/drivers/platform/x86/apple-gmux.c +++ b/drivers/platform/x86/apple-gmux.c | |||
@@ -624,19 +624,7 @@ static struct pnp_driver gmux_pnp_driver = { | |||
624 | }, | 624 | }, |
625 | }; | 625 | }; |
626 | 626 | ||
627 | static int __init apple_gmux_init(void) | 627 | module_pnp_driver(gmux_pnp_driver); |
628 | { | ||
629 | return pnp_register_driver(&gmux_pnp_driver); | ||
630 | } | ||
631 | |||
632 | static void __exit apple_gmux_exit(void) | ||
633 | { | ||
634 | pnp_unregister_driver(&gmux_pnp_driver); | ||
635 | } | ||
636 | |||
637 | module_init(apple_gmux_init); | ||
638 | module_exit(apple_gmux_exit); | ||
639 | |||
640 | MODULE_AUTHOR("Seth Forshee <seth.forshee@canonical.com>"); | 628 | MODULE_AUTHOR("Seth Forshee <seth.forshee@canonical.com>"); |
641 | MODULE_DESCRIPTION("Apple Gmux Driver"); | 629 | MODULE_DESCRIPTION("Apple Gmux Driver"); |
642 | MODULE_LICENSE("GPL"); | 630 | MODULE_LICENSE("GPL"); |