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>
Šī revīzija ir iekļauta:
Thierry Reding
2015-04-20 14:38:39 +02:00
vecāks 3358d2d9f4
revīzija 7e14f22305
5 mainīti faili ar 7 papildinājumiem un 7 dzēšanām

Parādīt failu

@@ -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) {