diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2019-06-12 21:58:59 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2019-06-26 11:39:07 +0200 |
commit | ba4004c715c906474ae84f1f9a97f55d3259c6bd (patch) | |
tree | 14acde4aaadd9d8a1707a85c853588f288b2be6d /fs/ntfs/debug.h | |
parent | 084f137600f436819323adc56da8cd8df87a68b9 (diff) | |
download | linux-ba4004c715c906474ae84f1f9a97f55d3259c6bd.tar.bz2 |
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>
Diffstat (limited to 'fs/ntfs/debug.h')
0 files changed, 0 insertions, 0 deletions