]> git.baikalelectronics.ru Git - kernel.git/commit
sony-laptop: use platform_device_unregister in sony_pf_remove
authorAxel Lin <axel.lin@gmail.com>
Thu, 1 Jul 2010 02:18:01 +0000 (10:18 +0800)
committerMatthew Garrett <mjg@redhat.com>
Tue, 3 Aug 2010 13:48:53 +0000 (09:48 -0400)
commite27817d920999dde6fe6a766cf154f753b4ff86b
tree911acb496cd0789b1dfec8d5ba6983b56c4aa929
parentda97d1c566f0aa9066afca04ffb9c00611f7630c
sony-laptop: use platform_device_unregister in sony_pf_remove

platform_device_unregister calls platform_device_del and platform_device_put,
thus this change is logically equivalent to original code.

I made this change because the documents in platform.c shows that:
platform_device_del and platform_device_put must _only_ be externally called
in error cases.  All other usage is a bug.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/sony-laptop.c