diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-06-18 01:15:23 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-06-30 14:02:50 +0200 |
commit | a6563bd605a42e5a54c19b1588457d687651d9c1 (patch) | |
tree | 62933d2d81dfea7e06a435537aaa4e0f930ccf2b | |
parent | d01107902d6fd5eb21a4136a343b531b63e563d6 (diff) |
cpufreq: imx7: fix undefined reference to arm_reg and soc_reg
This fixes the following build issue on i.MX 7:
arch/arm/mach-imx/built-in.o: In function `imx6ull_lower_cpu_rate':
platform-imx-dma.c:(.text+0x5514): undefined reference to `arm_reg'
platform-imx-dma.c:(.text+0x551c): undefined reference to `arm_reg'
platform-imx-dma.c:(.text+0x553c): undefined reference to `soc_reg'
platform-imx-dma.c:(.text+0x5544): undefined reference to `soc_reg'
platform-imx-dma.c:(.text+0x5598): undefined reference to `arm_reg'
platform-imx-dma.c:(.text+0x55a0): undefined reference to `arm_reg'
platform-imx-dma.c:(.text+0x55ac): undefined reference to `soc_reg'
platform-imx-dma.c:(.text+0x55b4): undefined reference to `soc_reg'
platform-imx-dma.c:(.text+0x55c8): undefined reference to `soc_reg'
platform-imx-dma.c:(.text+0x55d0): undefined reference to `soc_reg'
platform-imx-dma.c:(.text+0x55f0): undefined reference to `arm_reg'
platform-imx-dma.c:(.text+0x55f8): undefined reference to `arm_reg'
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
-rw-r--r-- | drivers/cpufreq/imx7-cpufreq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/cpufreq/imx7-cpufreq.c b/drivers/cpufreq/imx7-cpufreq.c index 803a44db5a27..d2eea557414d 100644 --- a/drivers/cpufreq/imx7-cpufreq.c +++ b/drivers/cpufreq/imx7-cpufreq.c @@ -21,7 +21,8 @@ static struct clk *pll_arm; static struct clk *arm_src; static struct clk *pll_sys_main; -static struct regulator *arm_reg; +struct regulator *arm_reg; +struct regulator *soc_reg; static struct device *cpu_dev; static struct cpufreq_frequency_table *freq_table; |