aboutsummaryrefslogtreecommitdiff
path: root/drivers/memory
diff options
context:
space:
mode:
authorDmitry Osipenko2022-05-10 02:32:29 +0300
committerRafael J. Wysocki2022-05-19 19:30:31 +0200
commitbf8d73b934df8aa485dc4650d6d5dfe5a640af4b (patch)
tree3dffe516c8b579b31b0e43a7572d640c2812fa87 /drivers/memory
parent2dfb34edfebf8a881914ffc80551fd37d1b632c2 (diff)
memory: emif: Use kernel_can_power_off()
Replace legacy pm_power_off with kernel_can_power_off() helper that is aware about chained power-off handlers. Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Reviewed-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/memory')
-rw-r--r--drivers/memory/emif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/memory/emif.c b/drivers/memory/emif.c
index ecc78d6f89ed..99d2df34e584 100644
--- a/drivers/memory/emif.c
+++ b/drivers/memory/emif.c
@@ -630,7 +630,7 @@ static irqreturn_t emif_threaded_isr(int irq, void *dev_id)
dev_emerg(emif->dev, "SDRAM temperature exceeds operating limit.. Needs shut down!!!\n");
/* If we have Power OFF ability, use it, else try restarting */
- if (pm_power_off) {
+ if (kernel_can_power_off()) {
kernel_power_off();
} else {
WARN(1, "FIXME: NO pm_power_off!!! trying restart\n");