2021-07-15 16:10:20

by Colin King

[permalink] [raw]
Subject: [PATCH] ARM: imx: fix missing 3rd argument in macro imx_mmdc_perf_init

From: Colin Ian King <[email protected]>

The function imx_mmdc_perf_init recently had a 3rd argument added to
it but the equivalent macro was not updated and is still the older
2 argument version. Fix this by adding in the missing 3rd argumement
mmdc_ipg_clk.

Fixes: f07ec8536580 ("ARM: imx: add missing clk_disable_unprepare()")
Signed-off-by: Colin Ian King <[email protected]>
---
arch/arm/mach-imx/mmdc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/mmdc.c b/arch/arm/mach-imx/mmdc.c
index 4a6f1359e1e9..af12668d0bf5 100644
--- a/arch/arm/mach-imx/mmdc.c
+++ b/arch/arm/mach-imx/mmdc.c
@@ -534,7 +534,7 @@ static int imx_mmdc_perf_init(struct platform_device *pdev, void __iomem *mmdc_b

#else
#define imx_mmdc_remove NULL
-#define imx_mmdc_perf_init(pdev, mmdc_base) 0
+#define imx_mmdc_perf_init(pdev, mmdc_base, mmdc_ipg_clk) 0
#endif

static int imx_mmdc_probe(struct platform_device *pdev)
--
2.31.1


2021-07-23 07:35:08

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCH] ARM: imx: fix missing 3rd argument in macro imx_mmdc_perf_init

On Thu, Jul 15, 2021 at 02:23:21PM +0100, Colin King wrote:
> From: Colin Ian King <[email protected]>
>
> The function imx_mmdc_perf_init recently had a 3rd argument added to
> it but the equivalent macro was not updated and is still the older
> 2 argument version. Fix this by adding in the missing 3rd argumement
> mmdc_ipg_clk.
>
> Fixes: f07ec8536580 ("ARM: imx: add missing clk_disable_unprepare()")
> Signed-off-by: Colin Ian King <[email protected]>

Applied, thanks!