diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2012-09-07 03:31:47 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-09-21 13:41:24 -0400 |
commit | 15165594da65f7b6c70fd47f27c2d3b0a23c9ca8 (patch) | |
tree | 16708fb2f9650f9da9db19d9390d04f16da0c61b /drivers/platform | |
parent | 26953f78fbae7fef6f91c3351050b0334c06161c (diff) |
topstar-laptop: convert to module_acpi_driver()
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Herton R. Krzesinski <herton@canonical.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/topstar-laptop.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/drivers/platform/x86/topstar-laptop.c b/drivers/platform/x86/topstar-laptop.c index d528daa0e81c..d727bfee89a6 100644 --- a/drivers/platform/x86/topstar-laptop.c +++ b/drivers/platform/x86/topstar-laptop.c | |||
@@ -186,27 +186,7 @@ static struct acpi_driver acpi_topstar_driver = { | |||
186 | .notify = acpi_topstar_notify, | 186 | .notify = acpi_topstar_notify, |
187 | }, | 187 | }, |
188 | }; | 188 | }; |
189 | 189 | module_acpi_driver(acpi_topstar_driver); | |
190 | static int __init topstar_laptop_init(void) | ||
191 | { | ||
192 | int ret; | ||
193 | |||
194 | ret = acpi_bus_register_driver(&acpi_topstar_driver); | ||
195 | if (ret < 0) | ||
196 | return ret; | ||
197 | |||
198 | pr_info("ACPI extras driver loaded\n"); | ||
199 | |||
200 | return 0; | ||
201 | } | ||
202 | |||
203 | static void __exit topstar_laptop_exit(void) | ||
204 | { | ||
205 | acpi_bus_unregister_driver(&acpi_topstar_driver); | ||
206 | } | ||
207 | |||
208 | module_init(topstar_laptop_init); | ||
209 | module_exit(topstar_laptop_exit); | ||
210 | 190 | ||
211 | MODULE_AUTHOR("Herton Ronaldo Krzesinski"); | 191 | MODULE_AUTHOR("Herton Ronaldo Krzesinski"); |
212 | MODULE_DESCRIPTION("Topstar Laptop ACPI Extras driver"); | 192 | MODULE_DESCRIPTION("Topstar Laptop ACPI Extras driver"); |