soc/tegra: pmc: Use devm_clk_get_optional()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 7 Aug 2022 20:55:59 +0000 (22:55 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 15 Sep 2022 11:13:40 +0000 (13:13 +0200)
commitc18f3524422dd28d2049f9ad3822a70e918a340d
tree46aa4c9344602326183e88adbbadcacce4f1cc32
parent2254182807fc09ba9dec9a42ef239e373796f1b2
soc/tegra: pmc: Use devm_clk_get_optional()

Use devm_clk_get_optional() instead of hand writing it.

While at it, use dev_err_probe() to further simplify the code. This is also
less verbose if clk_get() returns -EPROBE_DEFER.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/pmc.c