diff options
-rw-r--r-- | drivers/platform/x86/sony-laptop.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index a47fd4eef8a3..e3154ff7a39f 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/drivers/platform/x86/sony-laptop.c | |||
@@ -561,8 +561,7 @@ static void sony_pf_remove(void) | |||
561 | if (!atomic_dec_and_test(&sony_pf_users)) | 561 | if (!atomic_dec_and_test(&sony_pf_users)) |
562 | return; | 562 | return; |
563 | 563 | ||
564 | platform_device_del(sony_pf_device); | 564 | platform_device_unregister(sony_pf_device); |
565 | platform_device_put(sony_pf_device); | ||
566 | platform_driver_unregister(&sony_pf_driver); | 565 | platform_driver_unregister(&sony_pf_driver); |
567 | } | 566 | } |
568 | 567 | ||