mfd: rtsx: Add shutdown callback in rtsx_pci_driver
authorWei WANG <wei_wang@realsil.com.cn>
Tue, 20 Aug 2013 06:18:52 +0000 (14:18 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 20 Aug 2013 08:22:00 +0000 (10:22 +0200)
commit5947c167d145f32d4475d647a87e2af2699efe45
treeb75c7a66d0c946c714ed141aff8f66839cd01f6a
parent773ccdfd9cc6f9bf8ec75a59fa742d7a663a5903
mfd: rtsx: Add shutdown callback in rtsx_pci_driver

Some actions to clear power state should be handled in .shutdown
callback in rtsx_pci_driver. This patch adopts the following measures to
catch this goal:
1. Add a function rtsx_pci_power_off to abstract the common ops in
.shutdown and .suspend
2. Add pcr->ops->force_power_down to fulfill the individual action for
each reader model

Signed-off-by: Wei WANG <wei_wang@realsil.com.cn>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/rtl8411.c
drivers/mfd/rts5209.c
drivers/mfd/rts5227.c
drivers/mfd/rts5229.c
drivers/mfd/rts5249.c
drivers/mfd/rtsx_pcr.c
include/linux/mfd/rtsx_pci.h