diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-06-03 03:18:03 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2010-08-03 09:48:49 -0400 |
commit | 97ba0af097dc3428b85dc6a1282968d7ba9510f5 (patch) | |
tree | a59d5efd4e4f4549cabd921ca102260c7d235b0c /drivers/platform/x86/acer-wmi.c | |
parent | a5167c5b3a842b865b0ca87202b95cc8a84c9e7e (diff) |
acer-wmi/hp-wmi: use platform_device_unregister instead of platform_device_del in module_exit
platform_device_unregister will also call platform_device_put() to drop reference count.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform/x86/acer-wmi.c')
-rw-r--r-- | drivers/platform/x86/acer-wmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index ae79624a692e..56e6f1040e4f 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c | |||
@@ -1375,7 +1375,7 @@ static void __exit acer_wmi_exit(void) | |||
1375 | { | 1375 | { |
1376 | remove_sysfs(acer_platform_device); | 1376 | remove_sysfs(acer_platform_device); |
1377 | remove_debugfs(); | 1377 | remove_debugfs(); |
1378 | platform_device_del(acer_platform_device); | 1378 | platform_device_unregister(acer_platform_device); |
1379 | platform_driver_unregister(&acer_platform_driver); | 1379 | platform_driver_unregister(&acer_platform_driver); |
1380 | 1380 | ||
1381 | printk(ACER_INFO "Acer Laptop WMI Extras unloaded\n"); | 1381 | printk(ACER_INFO "Acer Laptop WMI Extras unloaded\n"); |