clk: tegra: Make clock initialization more robust
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 17 Sep 2014 09:34:17 +0000 (11:34 +0200)
committerPeter De Schrijver <pdeschrijver@nvidia.com>
Thu, 18 Sep 2014 11:56:53 +0000 (14:56 +0300)
commitb9e742c3164344fece3615aca42ec51b41753908
treec6d2ec101d61bb69fa6eee437f67e2bed1cee8ab
parent4c495c204f794125db11e74bd61228901b0acaa7
clk: tegra: Make clock initialization more robust

Don't abort clock initialization if we cannot match an entry in
tegra_clk_init_table to a valid entry in the clk array.

Also log a corresponding error message.

This was discovered when testing a patch that removed the EMC clock from
tegra124_clks but left a mention in tegra_clk_init_table.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
drivers/clk/tegra/clk.c