summaryrefslogtreecommitdiffstats
path: root/drivers/platform/Makefile
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2013-02-20 09:44:34 +0100
committerMatthew Garrett <matthew.garrett@nebula.com>2013-02-27 14:30:43 +0100
commitc165b80cfecc5f253e93ebd133f7c53cf81d82d5 (patch)
treef2b116203238dce30af1226574b6451f38905d6f /drivers/platform/Makefile
parentsony-laptop: leak in error handling sony_nc_lid_resume_setup() (diff)
downloadlinux-c165b80cfecc5f253e93ebd133f7c53cf81d82d5.tar.xz
linux-c165b80cfecc5f253e93ebd133f7c53cf81d82d5.zip
hp-wmi: fix handling of platform device
The driver will not quite work if someone unbinds the platform device from the platform driver via sysfs (moreover it will bomb is the driver built into the kernel as hp_wmi_bios_remove is marked as __exit and will not be present in the kernel). To fix it let's use platform_driver_probe() instead of platform_driver_register(), which disables binding/unbinding via sysfs. This also allows us to mark hp_wmi_bios_setup as __init and discard it once module is initialized. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Diffstat (limited to 'drivers/platform/Makefile')
0 files changed, 0 insertions, 0 deletions