From: Jaejoon Yoo Date: Wed, 14 Mar 2018 04:24:44 +0000 (+0900) Subject: [COMMON] pl330: Add exynos_pd config X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8ec2ed7e500ca0b50eeb1068d12d9911837c0ee1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] pl330: Add exynos_pd config Change-Id: I5a71d4f6ef5722c3db2204da33e46a2669bf7aff Signed-off-by: Jaejoon Yoo --- 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;