summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-core.h
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2018-12-04 20:24:37 +0100
committerStephen Boyd <sboyd@kernel.org>2019-03-01 11:17:16 -0800
commit2447883934a03c80a85d92cd313ea1d10e330158 (patch)
tree409aaf494a286fe60f134b4bee5bd1f201c545a6 /drivers/md/dm-core.h
parent1df4046a93e086f77d244ea47c21591b4acad3e2 (diff)
downloadlinux-2447883934a03c80a85d92cd313ea1d10e330158.tar.bz2
clk: core: clarify the check for runtime PM
Currently, the core->dev entry is populated only if runtime PM is enabled. Doing so prevents accessing the device structure in any case. Keep the same logic but instead of using the presence of core->dev as the only condition, also check the status of pm_runtime_enabled(). Then, we can set the core->dev pointer at any time as long as a device structure is available. This change will help supporting device links in the clock subsystem. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Cc: Jerome Brunet <jbrunet@baylibre.com> Cc: Russell King <linux@armlinux.org.uk> Cc: Michael Turquette <mturquette@baylibre.com> Cc: Jeffrey Hugo <jhugo@codeaurora.org> Cc: Chen-Yu Tsai <wens@csie.org> [sboyd@kernel.org: Change to a boolean flag] Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/md/dm-core.h')
0 files changed, 0 insertions, 0 deletions