summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-da9063.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-03-23 10:57:46 +0100
committerThierry Reding <treding@nvidia.com>2015-04-10 16:04:18 +0200
commit5e43e259171e1eee8bc074d9c44be434e685087b (patch)
treeaf36d43870e098bfea1b3a8b1e9a22c8dd93832a /drivers/rtc/rtc-da9063.c
parent44a6f3dbf1ac63b4d689cf081a3540cde03aa5d5 (diff)
downloadtalos-op-linux-5e43e259171e1eee8bc074d9c44be434e685087b.tar.gz
talos-op-linux-5e43e259171e1eee8bc074d9c44be434e685087b.zip
clk: tegra: Register the proper number of resets
The number of resets controls is 32 times the number of peripheral register banks rather than 32 times the number of clocks. This reduces (drastically) the number of reset controls registered from 10080 (315 clocks * 32) to 224 (6 peripheral register banks * 32). This also fixes a potential crash because trying to use any of the excess reset controls (224-10079) would have caused accesses beyond the array bounds of the peripheral register banks definition array. Cc: Peter De Schrijver <pdeschrijver@nvidia.com> Cc: Prashant Gaikwad <pgaikwad@nvidia.com> Fixes: 6d5b988e7dc5 ("clk: tegra: implement a reset driver") Cc: stable@vger.kernel.org # 3.14+ Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/rtc/rtc-da9063.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud