diff options
author | Thierry Reding <treding@nvidia.com> | 2015-04-20 15:38:39 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2016-04-28 13:41:45 +0300 |
commit | 7e14f22305b09bd57fc2da3bf2fd3bfd53dc285b (patch) | |
tree | 9d297aa7a3bf983a6c91fa103b7e0b7817e2e819 /drivers/clk/tegra/clk-periph.c | |
parent | 3358d2d9f47af86bdd71edb24b361f72a54ec04e (diff) | |
download | linux-7e14f22305b09bd57fc2da3bf2fd3bfd53dc285b.tar.xz |
clk: tegra: Constify peripheral clock registers
The peripheral clock registers are defined in static tables. These
tables never need to be modified at runtime, so they can reside in
read-only memory.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/clk/tegra/clk-periph.c')
-rw-r--r-- | drivers/clk/tegra/clk-periph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/tegra/clk-periph.c b/drivers/clk/tegra/clk-periph.c index ec5b6113b012..a17ca6d7f649 100644 --- a/drivers/clk/tegra/clk-periph.c +++ b/drivers/clk/tegra/clk-periph.c @@ -145,7 +145,7 @@ static struct clk *_tegra_clk_register_periph(const char *name, { struct clk *clk; struct clk_init_data init; - struct tegra_clk_periph_regs *bank; + const struct tegra_clk_periph_regs *bank; bool div = !(periph->gate.flags & TEGRA_PERIPH_NO_DIV); if (periph->gate.flags & TEGRA_PERIPH_NO_DIV) { |