linux/drivers/platform/x86
Uwe Kleine-König ea79632d90 x86: move hp-wmi's probe function to .devinit.text
A pointer to hp_wmi_bios_setup is passed to the core via
platform_driver_register and so the function must not disappear when the
.init sections are discarded.  Otherwise (if also having HOTPLUG=y)
unbinding and binding a device to the driver via sysfs will result in an
oops as does a device being registered late.

An alternative to this patch is using platform_driver_probe instead of
platform_driver_register plus removing the pointer to the probe function
from the struct platform_driver.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Frans Pop <elendil@planet.nl>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Len Brown <lenb@kernel.org>
Cc: Helge Deller <deller@gmx.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-03-07 17:04:50 -08:00
..
acer-wmi.c acer-wmi: Respect current backlight level when loading 2010-02-19 00:19:26 -05:00
acerhdf.c drivers/platform/x86/acerhdf.c: check BIOS information whether it begins with string of table 2009-12-24 00:17:09 -05:00
asus-laptop.c asus-laptop: fix style problems reported by checkpath.pl 2010-02-28 19:35:13 +01:00
asus_acpi.c asus-acpi: remove duplicate comparison of asus_model strings 2010-03-01 13:26:22 -05:00
classmate-laptop.c classmate-laptop: Added some keys present in other devices 2010-03-01 16:15:58 -05:00
compal-laptop.c compal-laptop: Replace sysfs support with rfkill support 2010-02-25 11:50:40 -05:00
dell-laptop.c dell-laptop: Fix errors on failure and exit paths 2010-03-01 09:46:43 -05:00
dell-wmi.c dell-wmi - fix condition to abort driver loading 2009-12-30 02:49:03 -05:00
eeepc-laptop.c eeepc-laptop: check wireless hotplug events 2010-02-28 19:30:57 +01:00
fujitsu-laptop.c Merge branch 'misc-2.6.33' into release 2009-12-24 01:19:00 -05:00
hp-wmi.c x86: move hp-wmi's probe function to .devinit.text 2010-03-07 17:04:50 -08:00
intel_menlow.c ACPICA: Add post-order callback to acpi_walk_namespace 2009-11-24 21:31:10 -05:00
Kconfig compal-laptop: Make it depend on CONFIG_RFKILL 2010-03-02 09:53:45 -05:00
Makefile classmate-laptop: add support for Classmate PC ACPI devices 2009-12-24 01:16:04 -05:00
msi-laptop.c
msi-wmi.c dell-wmi, hp-wmi, msi-wmi: check wmi_get_event_data() return value 2009-12-30 02:48:52 -05:00
panasonic-laptop.c Merge branches 'release', 'APERF', 'ARAT', 'misc', 'kelvin', 'device-lock' and 'bjorn.notify' into release 2009-04-07 18:18:42 -04:00
sony-laptop.c sony-laptop - fix using of uninitialized variable 2010-01-16 15:55:43 -05:00
tc1100-wmi.c tc1100-wmi - switch to using dev_pm_ops 2009-12-16 12:53:33 -05:00
thinkpad_acpi.c thinkpad-acpi: fix ALSA callback return status 2010-02-27 18:45:29 -03:00
topstar-laptop.c topstar-laptop: add new driver for hotkeys support on Topstar N01 2009-09-19 01:16:13 -04:00
toshiba_acpi.c toshiba-acpi: fix multimedia keys on some machines 2010-03-01 09:50:46 -05:00
toshiba_bluetooth.c ACPI: replace acpi_integer by u64 2010-01-28 01:47:33 -05:00
wmi.c ACPI: replace acpi_integer by u64 2010-01-28 01:47:33 -05:00