From 8ec2ed7e500ca0b50eeb1068d12d9911837c0ee1 Mon Sep 17 00:00:00 2001 From: Jaejoon Yoo Date: Wed, 14 Mar 2018 13:24:44 +0900 Subject: [PATCH] [COMMON] pl330: Add exynos_pd config Change-Id: I5a71d4f6ef5722c3db2204da33e46a2669bf7aff Signed-off-by: Jaejoon Yoo --- drivers/dma/pl330.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index ed3a7d169886..73ff94a1d32b 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -3072,6 +3072,7 @@ static int __maybe_unused pl330_suspend(struct device *dev) static int pl330_notifier(struct notifier_block *nb, unsigned long event, void *data) { +#ifdef CONFIG_EXYNOS_PD struct pl330_dmac *pl330 = container_of(nb, struct pl330_dmac, lpa_nb); @@ -3081,7 +3082,7 @@ static int pl330_notifier(struct notifier_block *nb, __raw_writel((pl330->mcode_bus >> 32) & 0xf, pl330->inst_wrapper); break; } - +#endif return NOTIFY_OK; } #endif /* CONFIG_CPU_IDLE */ @@ -3319,12 +3320,13 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id) pl330->lpa_nb.next = NULL; pl330->lpa_nb.priority = 0; +#ifdef CONFIG_EXYNOS_PD ret = exynos_pm_register_notifier(&pl330->lpa_nb); - if (ret) { dev_err(&adev->dev, "failed to register pm notifier\n"); goto probe_err3; } +#endif #endif return 0; -- 2.20.1