linux-stable-rt/drivers/pcmcia
Ming Lei 7a192ec334 platform driver: fix incorrect use of 'platform_bus_type' with 'struct device_driver'
This patch fixes the bug reported in
	http://bugzilla.kernel.org/show_bug.cgi?id=11681.

"Lots of device drivers register a 'struct device_driver' with
the '.bus' member set to '&platform_bus_type'. This is wrong,
since the platform_bus functions expect the 'struct device_driver'
to be wrapped up in a 'struct platform_driver' which provides
some additional callbacks (like suspend_late, resume_early).
The effect may be that platform_suspend_late() uses bogus data
outside the device_driver struct as a pointer pointer to the
device driver's suspend_late() function or other hard to
reproduce failures."(Lothar Wassmann)

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-03-24 16:38:25 -07:00
..
Kconfig [PCMCIA] e740 PCMCIA socket driver. 2008-12-15 03:52:53 +00:00
Makefile [PCMCIA] e740 PCMCIA socket driver. 2008-12-15 03:52:53 +00:00
at91_cf.c
au1000_db1x00.c
au1000_generic.c platform driver: fix incorrect use of 'platform_bus_type' with 'struct device_driver' 2009-03-24 16:38:25 -07:00
au1000_generic.h
au1000_pb1x00.c
au1000_xxs1500.c
bfin_cf_pcmcia.c pcmcia: blackfin: fix bug - add missing ; to MODULE macro 2008-12-15 16:27:06 -08:00
cardbus.c
cirrus.h
cistpl.c pcmcia: add braces in error path 2008-11-02 19:55:45 +01:00
cs.c pcmcia: ensure correct logging in do_io_probe 2008-11-09 21:47:47 +01:00
cs_internal.h
ds.c pcmcia: struct device - replace bus_id with dev_name(), dev_set_name() 2008-11-02 15:05:51 +01:00
electra_cf.c powerpc: Change u64/s64 to a long long integer type 2009-01-13 14:47:59 +11:00
i82092.c
i82092aa.h
i82365.c platform driver: fix incorrect use of 'platform_bus_type' with 'struct device_driver' 2009-03-24 16:38:25 -07:00
i82365.h
m8xx_pcmcia.c
m32r_cfc.c platform driver: fix incorrect use of 'platform_bus_type' with 'struct device_driver' 2009-03-24 16:38:25 -07:00
m32r_cfc.h
m32r_pcc.c platform driver: fix incorrect use of 'platform_bus_type' with 'struct device_driver' 2009-03-24 16:38:25 -07:00
m32r_pcc.h
o2micro.h
omap_cf.c
pcmcia_ioctl.c
pcmcia_resource.c pcmcia: fix indentation & braces disagreement - add braces 2008-11-01 23:39:11 +01:00
pd6729.c
pd6729.h
pxa2xx_base.c
pxa2xx_base.h
pxa2xx_cm_x2xx.c
pxa2xx_cm_x255.c
pxa2xx_cm_x270.c
pxa2xx_e740.c [PCMCIA] e740 PCMCIA socket driver. 2008-12-15 03:52:53 +00:00
pxa2xx_lubbock.c
pxa2xx_mainstone.c
pxa2xx_palmld.c
pxa2xx_palmtx.c
pxa2xx_sharpsl.c
pxa2xx_trizeps4.c
pxa2xx_viper.c
ricoh.h
rsrc_mgr.c pcmcia: struct device - replace bus_id with dev_name(), dev_set_name() 2009-03-24 16:38:22 -07:00
rsrc_nonstatic.c pcmcia: struct device - replace bus_id with dev_name(), dev_set_name() 2008-11-02 15:05:51 +01:00
sa11xx_base.c
sa11xx_base.h
sa1100_assabet.c
sa1100_badge4.c
sa1100_cerf.c
sa1100_generic.c platform driver: fix incorrect use of 'platform_bus_type' with 'struct device_driver' 2009-03-24 16:38:25 -07:00
sa1100_generic.h
sa1100_h3600.c
sa1100_jornada720.c
sa1100_neponset.c
sa1100_shannon.c
sa1100_simpad.c
sa1111_generic.c
sa1111_generic.h
soc_common.c
soc_common.h
socket_sysfs.c
tcic.c platform driver: fix incorrect use of 'platform_bus_type' with 'struct device_driver' 2009-03-24 16:38:25 -07:00
tcic.h
ti113x.h
topic.h
vg468.h
vrc4171_card.c platform driver: fix incorrect use of 'platform_bus_type' with 'struct device_driver' 2009-03-24 16:38:25 -07:00
vrc4173_cardu.c
vrc4173_cardu.h
yenta_socket.c
yenta_socket.h