Martin Blumenstingl ba4004c715 pwm: meson: Use devm_clk_get_optional() to get the input clock
Simplify the code which fetches the input clock for a PWM channel by
using devm_clk_get_optional().
This comes with a small functional change: previously all errors except
EPROBE_DEFER were ignored. Now all other errors are also treated as
errors. If no input clock is present devm_clk_get_optional() will return
NULL instead of an error which matches the behavior of the old code.

Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
2019-06-26 11:39:07 +02:00
..
2019-06-25 14:51:43 +02:00
2019-05-09 17:09:54 +02:00
2019-03-04 11:38:52 +01:00
2019-01-16 08:45:33 +01:00
2018-07-12 09:03:06 +02:00
2017-01-19 00:38:17 +01:00
2017-08-21 08:11:24 +02:00
2019-03-20 12:34:14 +01:00