mmc: core: Refactor code to register the MMC PM notifier
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 5 Nov 2015 15:11:12 +0000 (16:11 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 22 Dec 2015 10:32:04 +0000 (11:32 +0100)
commit8dede18e2e86c8e272cd74e66b0e86872cbe7e02
treef1b557366ff4baf7ea10bff82f40e713a0593473
parent7b6471a968bf95e8d526393de125df3bc0c6a73a
mmc: core: Refactor code to register the MMC PM notifier

Instead of checking for "#ifdef" directly in the code, let's invent a pair
of mmc core functions to deal with register/unregister the MMC PM notifier
block. Implement stubs for these functions when CONFIG_PM_SLEEP is unset,
as in that case the PM notifiers isn't used.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c
drivers/mmc/core/core.h
drivers/mmc/core/host.c
include/linux/mmc/host.h
This page took 0.035107 seconds and 5 git commands to generate.