clocksource/drivers/asm9260: Add a check for of_clk_get
authorChuhong Yuan <hslester96@gmail.com>
Wed, 16 Oct 2019 12:43:30 +0000 (20:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Jan 2020 18:12:44 +0000 (19:12 +0100)
commit55bdcb2ecb006831b76a18d4ef7a3b13860bc1b7
tree7ca729fe116212287d1a7fb9e609b9c0a100a519
parenta072f0ab35d213e4471a6c93e61d0b4a1b46dc05
clocksource/drivers/asm9260: Add a check for of_clk_get

[ Upstream commit 6e001f6a4cc73cd06fc7b8c633bc4906c33dd8ad ]

asm9260_timer_init misses a check for of_clk_get.
Add a check for it and print errors like other clocksource drivers.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20191016124330.22211-1-hslester96@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clocksource/asm9260_timer.c