aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2015-03-01 18:12:03 -0500
committerHeiko Stuebner <heiko@sntech.de>2015-03-11 17:40:56 -0400
commitbd76d73836fa903d67eaabcb3a0201d2d0a73461 (patch)
tree14d1e3bbd563ce94776870909bfab8b7b8488456
parentc517d838eb7d07bbe9507871fab3931deccff539 (diff)
ARM: rockchip: Constify struct regmap_config and staticize local function
The regmap_config struct may be const because it is not modified by the driver and regmap_init() accepts pointer to const. Make function rockchip_get_core_reset() static because it is not used outside of the platsmp.c file. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
-rw-r--r--arch/arm/mach-rockchip/platsmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-rockchip/platsmp.c b/arch/arm/mach-rockchip/platsmp.c
index f26fcdca2445..5b4ca3c3c879 100644
--- a/arch/arm/mach-rockchip/platsmp.c
+++ b/arch/arm/mach-rockchip/platsmp.c
@@ -55,7 +55,7 @@ static int pmu_power_domain_is_on(int pd)
55 return !(val & BIT(pd)); 55 return !(val & BIT(pd));
56} 56}
57 57
58struct reset_control *rockchip_get_core_reset(int cpu) 58static struct reset_control *rockchip_get_core_reset(int cpu)
59{ 59{
60 struct device *dev = get_cpu_device(cpu); 60 struct device *dev = get_cpu_device(cpu);
61 struct device_node *np; 61 struct device_node *np;
@@ -201,7 +201,7 @@ static int __init rockchip_smp_prepare_sram(struct device_node *node)
201 return 0; 201 return 0;
202} 202}
203 203
204static struct regmap_config rockchip_pmu_regmap_config = { 204static const struct regmap_config rockchip_pmu_regmap_config = {
205 .reg_bits = 32, 205 .reg_bits = 32,
206 .val_bits = 32, 206 .val_bits = 32,
207 .reg_stride = 4, 207 .reg_stride = 4,