diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-03-31 20:50:42 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2015-04-01 10:59:27 -0700 |
commit | f375573c96470a27b911aeb1c0a25212d0e145a2 (patch) | |
tree | b3033521ae30928a059f0a992f50349765f709ad /drivers/clk/ti | |
parent | aa571b148c6ab9843e79622f0209b6163d8d4fc5 (diff) | |
download | op-kernel-dev-f375573c96470a27b911aeb1c0a25212d0e145a2.zip op-kernel-dev-f375573c96470a27b911aeb1c0a25212d0e145a2.tar.gz |
clk: constify of_device_id array
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
__initdata updated to __initconst for
static const struct of_device_id ti_clkdm_match_table[]
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/ti')
-rw-r--r-- | drivers/clk/ti/clk-dra7-atl.c | 2 | ||||
-rw-r--r-- | drivers/clk/ti/clockdomain.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/ti/clk-dra7-atl.c b/drivers/clk/ti/clk-dra7-atl.c index 59bb4b3..d86bc46 100644 --- a/drivers/clk/ti/clk-dra7-atl.c +++ b/drivers/clk/ti/clk-dra7-atl.c @@ -294,7 +294,7 @@ static int of_dra7_atl_clk_remove(struct platform_device *pdev) return 0; } -static struct of_device_id of_dra7_atl_clk_match_tbl[] = { +static const struct of_device_id of_dra7_atl_clk_match_tbl[] = { { .compatible = "ti,dra7-atl", }, {}, }; diff --git a/drivers/clk/ti/clockdomain.c b/drivers/clk/ti/clockdomain.c index b4c5fac..35fe108 100644 --- a/drivers/clk/ti/clockdomain.c +++ b/drivers/clk/ti/clockdomain.c @@ -52,7 +52,7 @@ static void __init of_ti_clockdomain_setup(struct device_node *node) } } -static struct of_device_id ti_clkdm_match_table[] __initdata = { +static const struct of_device_id ti_clkdm_match_table[] __initconst = { { .compatible = "ti,clockdomain" }, { } }; |