pcmcia: use dev_pm_ops for class pcmcia_socket_class
commitd7646f7632549124fe70fec8af834c7c1246f365
authorDominik Brodowski <linux@dominikbrodowski.net>
Mon, 15 Mar 2010 20:46:34 +0000 (15 21:46 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Wed, 24 Mar 2010 10:00:11 +0000 (24 11:00 +0100)
treed69cf32f089d84f7a1d7813f7c8dd8b980170b25
parente7176a37d436a214f6a7727ea7986c654cbee8f0
pcmcia: use dev_pm_ops for class pcmcia_socket_class

Instead of requiring PCMCIA socket drivers to call various functions
during their (bus) resume and suspend functions, register an own
dev_pm_ops for this class. This fixes several suspend/resume bugs
seen on db1xxx-ss, and probably on some other socket drivers, too.

With regard to the asymmetry with only _noirq suspend, but split up
resume, please see bug 14334 and commit 9905d1b411946fb3 .

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
19 files changed:
drivers/pcmcia/at91_cf.c
drivers/pcmcia/au1000_generic.c
drivers/pcmcia/bfin_cf_pcmcia.c
drivers/pcmcia/cs.c
drivers/pcmcia/db1xxx_ss.c
drivers/pcmcia/i82092.c
drivers/pcmcia/i82365.c
drivers/pcmcia/m32r_cfc.c
drivers/pcmcia/m32r_pcc.c
drivers/pcmcia/m8xx_pcmcia.c
drivers/pcmcia/omap_cf.c
drivers/pcmcia/pd6729.c
drivers/pcmcia/pxa2xx_base.c
drivers/pcmcia/sa1100_generic.c
drivers/pcmcia/sa1111_generic.c
drivers/pcmcia/tcic.c
drivers/pcmcia/vrc4171_card.c
drivers/pcmcia/yenta_socket.c
include/pcmcia/ss.h