linux/drivers/platform/x86
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
..
acer-wmi.c acer-wmi: avoid the warning of 'devices' may be used uninitialized 2013-02-27 08:30:41 -05:00
acerhdf.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
amilo-rfkill.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
apple-gmux.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
asus-laptop.c asus-laptop: always report brightness key events 2013-02-27 08:30:38 -05:00
asus-nb-wmi.c asus-wmi: always report brightness key events 2013-02-27 08:30:37 -05:00
asus-wmi.c asus-wmi: Fix unused function build warning 2013-02-27 08:30:42 -05:00
asus-wmi.h asus-wmi: always report brightness key events 2013-02-27 08:30:37 -05:00
chromeos_laptop.c Platform: x86: chromeos_laptop - Add HP Pavilion 14 2013-02-27 08:30:40 -05:00
classmate-laptop.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
compal-laptop.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
dell-laptop.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
dell-wmi-aio.c
dell-wmi.c dell-wmi: Add keys for Dell XPS L502X 2011-08-05 15:21:47 -04:00
eeepc-laptop.c ACPI and power management updates for 3.9-rc1 2013-02-20 11:26:56 -08:00
eeepc-wmi.c asus-wmi: always report brightness key events 2013-02-27 08:30:37 -05:00
fujitsu-laptop.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
fujitsu-tablet.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
hdaps.c platform / x86 / PM: Fix unused function warnings for CONFIG_PM_SLEEP 2012-08-10 14:29:43 +02:00
hp_accel.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
hp-wmi.c hp-wmi: fix handling of platform device 2013-02-27 08:30:43 -05:00
ibm_rtl.c efi: Make 'efi_enabled' a function to query EFI facilities 2013-01-30 11:51:59 -08:00
ideapad-laptop.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
intel_ips.c Power management updates for 3.6 2012-07-22 13:36:52 -07:00
intel_ips.h
intel_menlow.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
intel_mid_powerbtn.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
intel_mid_thermal.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
intel_oaktrail.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
intel_pmic_gpio.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
intel_scu_ipc.c intel_scu_ipc: Remove Moorestown support 2012-03-20 12:02:02 -04:00
intel_scu_ipcutil.c intel_scu_ipc: Remove Moorestown support 2012-03-20 12:02:02 -04:00
Kconfig Platform: x86: Add Chrome OS Laptop driver 2013-02-24 14:49:57 -08:00
Makefile Platform: x86: Add Chrome OS Laptop driver 2013-02-24 14:49:57 -08:00
msi-laptop.c msi-laptop: Disable brightness control for new EC 2013-02-24 14:49:53 -08:00
msi-wmi.c msi-wmi: Add MSI Wind support 2013-02-24 14:49:54 -08:00
mxm-wmi.c
panasonic-laptop.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
samsung-laptop.c samsung-laptop: Disable on EFI hardware 2013-01-30 11:52:11 -08:00
samsung-q10.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
sony-laptop.c sony-laptop: leak in error handling sony_nc_lid_resume_setup() 2013-02-27 08:30:43 -05:00
tc1100-wmi.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
thinkpad_acpi.c drivers/platform/x86/thinkpad_acpi.c: Handle HKEY event 0x6040 2013-02-27 08:30:41 -05:00
topstar-laptop.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
toshiba_acpi.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
toshiba_bluetooth.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
wmi.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
xo1-rfkill.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
xo15-ebook.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00