kernel_optimize_test/drivers/misc
Sam Ravnborg 7560e38565 acer-wmi: fix section mismatch warnings
Fix following warnings:
WARNING: vmlinux.o(.text+0x672615): Section mismatch in reference from the function acer_platform_remove() to the function .exit.text:acer_backlight_exit()
WARNING: vmlinux.o(.devinit.text+0x1e859): Section mismatch in reference from the function acer_platform_probe() to the function .init.text:acer_led_init()
WARNING: vmlinux.o(.devinit.text+0x1e878): Section mismatch in reference from the function acer_platform_probe() to the function .init.text:acer_backlight_init()

Remove __exit annotation from acer_backlight_exit(). We cannot reference
a __exit annotated function from non __exit functions.

acer_led_init() and acer_backlight_init() where both annotated __init but
used from a __devinit function. This would result in an oops should
gcc drop their inlining and the module are hot plugged.

Fix by annotating acer_led_init() and acer_backlight_init() __devinit.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
2008-02-21 02:55:53 -05:00
..
hdpuftrs [POWERPC] Sky Cpu and Nexus: use seq_file/single_open on proc interface 2007-10-03 12:02:44 +10:00
ibmasm kobject: convert ibmasm to use kref, not kobject 2008-01-24 20:40:08 -08:00
acer-wmi.c acer-wmi: fix section mismatch warnings 2008-02-21 02:55:53 -05:00
asus-laptop.c Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2008-02-07 09:45:58 -08:00
atmel_pwm.c Basic PWM driver for AVR32 and AT91 2008-02-08 09:22:38 -08:00
atmel-ssc.c Driver for the Atmel on-chip SSC on AT32AP and AT91 2007-10-17 08:42:47 -07:00
eeprom_93cx6.c eeprom_93cx6: shorten pulse timing to match spec (bis) 2007-07-10 12:41:09 -04:00
enclosure.c [SCSI] enclosure: add support for enclosure services 2008-02-07 18:04:10 -06:00
fujitsu-laptop.c Remove inclusions of <linux/autoconf.h> 2008-02-06 10:41:00 -08:00
intel_menlow.c intel_menlo: introduce new platform specific driver 2008-02-01 23:20:57 -05:00
ioc4.c drivers/misc: Move misplaced pci_dev_put's 2007-11-14 18:45:39 -08:00
Kconfig Merge branches 'release', 'wmi' and 'laptop-docs' into release 2008-02-09 04:32:55 -05:00
lkdtm.c drivers/misc/lkdtm.c: cleanups 2008-02-06 10:41:03 -08:00
Makefile Basic PWM driver for AVR32 and AT91 2008-02-08 09:22:38 -08:00
msi-laptop.c Remove inclusions of <linux/autoconf.h> 2008-02-06 10:41:00 -08:00
phantom.c phantom: don't grab other devices 2008-02-06 10:41:10 -08:00
sony-laptop.c sony-laptop: fix scancode decode 2008-01-24 00:47:29 -05:00
tc1100-wmi.c tc1100-wmi: Add driver for HP Compaq TC1100 Tablets 2008-02-05 15:07:16 -05:00
thinkpad_acpi.c thinkpad_acpi: static 2008-02-14 01:01:28 -05:00
tifm_7xx1.c memstick: initial commit for Sony MemoryStick support 2008-02-09 11:08:34 -08:00
tifm_core.c memstick: initial commit for Sony MemoryStick support 2008-02-09 11:08:34 -08:00