linux/drivers/platform
Dmitry Torokhov c165b80cfe 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>
2013-02-27 08:30:43 -05:00
..
goldfish goldfish: Add a FIXME note to the pipe driver 2013-01-24 13:51:38 -08:00
olpc Platform: OLPC: move global variables into priv struct 2012-07-31 23:27:31 -04:00
x86 hp-wmi: fix handling of platform device 2013-02-27 08:30:43 -05:00
Kconfig goldfish: add QEMU pipe driver 2013-01-24 13:49:34 -08:00
Makefile goldfish: add the goldfish virtual bus 2013-01-24 13:49:34 -08:00