linux-brain/drivers/sh
Geert Uytterhoeven ad1d8666ae drivers: sh: Restore legacy clock domain on SuperH platforms
commit 0378ba4899 upstream.

CONFIG_ARCH_SHMOBILE is not only enabled for Renesas ARM platforms
(which are DT based and multi-platform), but also on a select set of
Renesas SuperH platforms (SH7722/SH7723/SH7724/SH7343/SH7366). Hence
since commit 0ba58de231 ("drivers: sh: Get rid of
CONFIG_ARCH_SHMOBILE_MULTI"), the legacy clock domain is no longer
installed on these SuperH platforms, and module clocks may not be
enabled when needed, leading to driver failures.

To fix this, add an additional check for CONFIG_OF.

Fixes: 0ba58de231 ("drivers: sh: Get rid of CONFIG_ARCH_SHMOBILE_MULTI").
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-09 15:34:49 -08:00
..
clk sh: clk: Use cpufreq_for_each_valid_entry macro for iteration 2014-04-30 00:07:00 +02:00
intc sh: Kill off set_irq_flags usage 2015-09-16 16:53:39 +02:00
maple sh: Add module.h to arch/sh specific files as required. 2011-10-31 19:31:04 -04:00
superhyway sh: struct device - replace bus_id with dev_name(), dev_set_name() 2009-03-24 16:38:21 -07:00
Kconfig sh-pfc: Move driver from drivers/sh/ to drivers/pinctrl/ 2013-01-25 09:24:25 +09:00
Makefile sh: intc: Confine SH_INTC to platforms that need it 2014-08-22 12:28:16 +09:00
pm_runtime.c drivers: sh: Restore legacy clock domain on SuperH platforms 2016-03-09 15:34:49 -08:00