[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211124115728.764318250@linuxfoundation.org>
Date: Wed, 24 Nov 2021 12:58:02 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, Randy Dunlap <rdunlap@...radead.org>,
"Russell King (Oracle)" <rmk+kernel@...linux.org.uk>,
linux-mips@...r.kernel.org, John Crispin <john@...ozen.org>,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Jonathan Cameron <jic23@...nel.org>, linux-iio@...r.kernel.org,
Russell King <linux@...linux.org.uk>,
Andy Shevchenko <andy.shevchenko@...il.com>,
Jonathan Cameron <Jonathan.Cameron@...wei.com>,
Sasha Levin <sashal@...nel.org>
Subject: [PATCH 4.19 292/323] mips: lantiq: add support for clk_get_parent()
From: Randy Dunlap <rdunlap@...radead.org>
[ Upstream commit fc1aabb088860d6cf9dd03612b7a6f0de91ccac2 ]
Provide a simple implementation of clk_get_parent() in the
lantiq subarch so that callers of it will build without errors.
Fixes this build error:
ERROR: modpost: "clk_get_parent" [drivers/iio/adc/ingenic-adc.ko] undefined!
Fixes: 171bb2f19ed6 ("MIPS: Lantiq: Add initial support for Lantiq SoCs")
Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
Suggested-by: Russell King (Oracle) <rmk+kernel@...linux.org.uk>
Cc: linux-mips@...r.kernel.org
Cc: John Crispin <john@...ozen.org>
Cc: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Cc: Jonathan Cameron <jic23@...nel.org>
Cc: linux-iio@...r.kernel.org
Cc: Russell King <linux@...linux.org.uk>
Cc: Andy Shevchenko <andy.shevchenko@...il.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@...wei.com>
Acked-by: John Crispin <john@...ozen.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Signed-off-by: Sasha Levin <sashal@...nel.org>
---
arch/mips/lantiq/clk.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/mips/lantiq/clk.c b/arch/mips/lantiq/clk.c
index a263d1b751ffe..a8e309dcd38d7 100644
--- a/arch/mips/lantiq/clk.c
+++ b/arch/mips/lantiq/clk.c
@@ -160,6 +160,12 @@ void clk_deactivate(struct clk *clk)
}
EXPORT_SYMBOL(clk_deactivate);
+struct clk *clk_get_parent(struct clk *clk)
+{
+ return NULL;
+}
+EXPORT_SYMBOL(clk_get_parent);
+
static inline u32 get_counter_resolution(void)
{
u32 res;
--
2.33.0
Powered by blists - more mailing lists