clk: tegra: Add peripheral clock registration helper
authorThierry Reding <treding@nvidia.com>
Wed, 30 Aug 2017 10:11:53 +0000 (12:11 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 19 Oct 2017 14:38:40 +0000 (16:38 +0200)
commit8be95190dac73a8b6bfc51a7c3ad6ec3d0a4d5f7
tree2388fdd933ad5a7d38115df6beefda0fdd37e0a0
parent231ca2e583be324012212d10ad913f30c2f66adb
clk: tegra: Add peripheral clock registration helper

There is a common pattern that registers individual peripheral clocks
from an initialization table. Add a common implementation to remove the
duplication from various call sites.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/clk/tegra/clk-periph.c
drivers/clk/tegra/clk.h