Skip to content

Commit fc1aabb

Browse files
rddunlaptsbogend
authored andcommitted
mips: lantiq: add support for clk_get_parent()
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: 171bb2f ("MIPS: Lantiq: Add initial support for Lantiq SoCs") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Suggested-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Cc: linux-mips@vger.kernel.org Cc: John Crispin <john@phrozen.org> Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Cc: Jonathan Cameron <jic23@kernel.org> Cc: linux-iio@vger.kernel.org Cc: Russell King <linux@armlinux.org.uk> Cc: Andy Shevchenko <andy.shevchenko@gmail.com> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Acked-by: John Crispin <john@phrozen.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent e8f6748 commit fc1aabb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

arch/mips/lantiq/clk.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,12 @@ void clk_deactivate(struct clk *clk)
158158
}
159159
EXPORT_SYMBOL(clk_deactivate);
160160

161+
struct clk *clk_get_parent(struct clk *clk)
162+
{
163+
return NULL;
164+
}
165+
EXPORT_SYMBOL(clk_get_parent);
166+
161167
static inline u32 get_counter_resolution(void)
162168
{
163169
u32 res;

0 commit comments

Comments
 (0)