Skip to content

Commit e8f6748

Browse files
rddunlaptsbogend
authored andcommitted
mips: bcm63xx: add support for clk_get_parent()
BCM63XX selects HAVE_LEGACY_CLK but does not provide/support clk_get_parent(), so add a simple implementation of that function so that callers of it will build without errors. Fixes these build errors: mips-linux-ld: drivers/iio/adc/ingenic-adc.o: in function `jz4770_adc_init_clk_div': ingenic-adc.c:(.text+0xe4): undefined reference to `clk_get_parent' mips-linux-ld: drivers/iio/adc/ingenic-adc.o: in function `jz4725b_adc_init_clk_div': ingenic-adc.c:(.text+0x1b8): undefined reference to `clk_get_parent' Fixes: e7300d0 ("MIPS: BCM63xx: Add support for the Broadcom BCM63xx family of SOCs." ) Signed-off-by: Randy Dunlap <[email protected]> Reported-by: kernel test robot <[email protected]> Suggested-by: Russell King (Oracle) <[email protected]> Cc: Artur Rojek <[email protected]> Cc: Paul Cercueil <[email protected]> Cc: [email protected] Cc: Jonathan Cameron <[email protected]> Cc: Lars-Peter Clausen <[email protected]> Cc: [email protected] Cc: Florian Fainelli <[email protected]> Cc: Andy Shevchenko <[email protected]> Cc: Russell King <[email protected]> Cc: [email protected] Cc: Jonas Gorski <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Acked-by: Jonathan Cameron <[email protected]> Acked-by: Russell King (Oracle) <[email protected]> Acked-by: Florian Fainelli <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 255e51d commit e8f6748

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/mips/bcm63xx/clk.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,12 @@ void clk_disable(struct clk *clk)
381381

382382
EXPORT_SYMBOL(clk_disable);
383383

384+
struct clk *clk_get_parent(struct clk *clk)
385+
{
386+
return NULL;
387+
}
388+
EXPORT_SYMBOL(clk_get_parent);
389+
384390
unsigned long clk_get_rate(struct clk *clk)
385391
{
386392
if (!clk)

0 commit comments

Comments
 (0)