linux/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
..
at91_cf.c drivers/pcmcia: use nr_irqs 2008-10-16 16:52:06 +02:00
au1000_db1x00.c pcmcia: replace remaining __FUNCTION__ occurrences 2008-05-01 08:04:00 -07:00
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 pcmcia: encapsulate ioaddr_t 2008-08-29 09:43:14 +02:00
au1000_pb1x00.c pcmcia: cs_internal.h is internal 2008-08-25 23:16:57 +02:00
au1000_xxs1500.c pcmcia: cs_internal.h is internal 2008-08-25 23:16:57 +02:00
bfin_cf_pcmcia.c pcmcia: blackfin: fix bug - add missing ; to MODULE macro 2008-12-15 16:27:06 -08:00
cardbus.c pcmcia: deprecate CS_SUCCESS 2008-08-23 02:29:26 +02:00
cirrus.h
cistpl.c pcmcia: add braces in error path 2008-11-02 19:55:45 +01:00
cs_internal.h pcmcia: remove unused argument to pcmcia_parse_tuple() 2008-08-31 15:50:33 +02:00
cs.c pcmcia: ensure correct logging in do_io_probe 2008-11-09 21:47:47 +01:00
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 pcmcia: remove CVS keywords 2008-06-24 15:33:37 +02:00
i82092aa.h pcmcia: remove CVS keywords 2008-06-24 15:33:37 +02:00
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
Kconfig [PCMCIA] e740 PCMCIA socket driver. 2008-12-15 03:52:53 +00:00
m8xx_pcmcia.c pcmcia: don't add extra DEBUG cflag 2008-08-23 01:55:06 +02:00
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
Makefile [PCMCIA] e740 PCMCIA socket driver. 2008-12-15 03:52:53 +00:00
o2micro.h pcmcia: use dev_printk and dev_dbg in yenta_socket 2008-08-23 01:49:44 +02:00
omap_cf.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
pcmcia_ioctl.c pcmcia: remove unused argument to pcmcia_parse_tuple() 2008-08-31 15:50:33 +02:00
pcmcia_resource.c pcmcia: fix indentation & braces disagreement - add braces 2008-11-01 23:39:11 +01:00
pd6729.c pcmcia: silence section mismatch warnings from pci_driver variables 2008-05-01 08:04:00 -07:00
pd6729.h
pxa2xx_base.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6 2008-10-13 14:12:40 -07:00
pxa2xx_base.h [ARM] Fix suspend oops caused by PXA2xx PCMCIA driver 2006-10-28 22:42:56 +01:00
pxa2xx_cm_x2xx.c [ARM] 5283/1: pxa: add CM-X255 pcmcia support 2008-10-07 12:08:02 +01:00
pxa2xx_cm_x255.c [ARM] 5283/1: pxa: add CM-X255 pcmcia support 2008-10-07 12:08:02 +01:00
pxa2xx_cm_x270.c [ARM] 5283/1: pxa: add CM-X255 pcmcia support 2008-10-07 12:08:02 +01:00
pxa2xx_e740.c [PCMCIA] e740 PCMCIA socket driver. 2008-12-15 03:52:53 +00:00
pxa2xx_lubbock.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
pxa2xx_mainstone.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
pxa2xx_palmld.c [ARM] 5199/1: PalmLD: PCMCIA driver 2008-08-16 16:37:06 +01:00
pxa2xx_palmtx.c [ARM] 5198/1: PalmTX: PCMCIA fixes 2008-08-16 16:35:33 +01:00
pxa2xx_sharpsl.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
pxa2xx_trizeps4.c [ARM] pxa: trizeps4: remove unused variable 2008-10-07 15:52:03 +01:00
pxa2xx_viper.c Add support for the Arcom/Eurotech Viper SBC CompactFlash card slot 2008-09-09 17:41:53 +02:00
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 [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
sa11xx_base.h
sa1100_assabet.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
sa1100_badge4.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
sa1100_cerf.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
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 [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
sa1100_jornada720.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
sa1100_neponset.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
sa1100_shannon.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
sa1100_simpad.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
sa1111_generic.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
sa1111_generic.h
soc_common.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6 2008-10-13 14:12:40 -07:00
soc_common.h pcmcia: cs_internal.h is internal 2008-08-25 23:16:57 +02:00
socket_sysfs.c pcmcia: only copy CIS override data once 2008-08-02 18:56:49 +02:00
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 pcmcia: use dev_printk and dev_dbg in yenta_socket 2008-08-23 01:49:44 +02:00
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 pcmcia: use dev_printk and dev_dbg in yenta_socket 2008-08-23 01:49:44 +02:00
yenta_socket.h