summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-pci-o2micro.c
diff options
context:
space:
mode:
authorVaibhav Gupta <vaibhavgupta40@gmail.com>2020-07-20 19:56:04 +0530
committerUlf Hansson <ulf.hansson@linaro.org>2020-07-24 12:25:24 +0200
commit0d776e5bede6d375c617a03262eee9d2a8a58b75 (patch)
tree7cbec388fbbeb12b7a95b6d2e55ae25c45d03ac4 /drivers/mmc/host/sdhci-pci-o2micro.c
parentc4e5e22b3b4895821b7e7a9f5b2f7c820fb48ca3 (diff)
downloadlinux-0d776e5bede6d375c617a03262eee9d2a8a58b75.tar.bz2
mmc: via-sdmmc: use generic power management
Drivers using legacy PM have to manage PCI states and device's PM states themselves. They also need to take care of configuration registers. With improved and powerful support of generic PM, PCI Core takes care of above mentioned, device-independent, jobs. This driver makes use of PCI helper functions like pci_save/restore_state(), pci_enable/disable_device(), pci_enable_wake() and pci_set_power_state() and to do required operations. In generic mode, they are no longer needed. Change function parameter in both .suspend() and .resume() to "struct device*" type. Use dev_get_drvdata() to get drv data. Compile-tested only. Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com> Link: https://lore.kernel.org/r/20200720142603.577323-1-vaibhavgupta40@gmail.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-pci-o2micro.c')
0 files changed, 0 insertions, 0 deletions