]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mvebu: only fail on missing clk if pwm is actually to be used
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 17 Dec 2018 08:43:13 +0000 (09:43 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 21 Dec 2018 08:23:46 +0000 (09:23 +0100)
commitee1a9a7c2deb3ac5e185d873885487cc526e9a23
treef4b06950c1151452c165cb675cb8292b81e462df
parent5d479170ed72673d08fc25ed870a00ea2c4392b0
gpio: mvebu: only fail on missing clk if pwm is actually to be used

The gpio IP on Armada 370 at offset 0x18180 has neither a clk nor pwm
registers. So there is no need for a clk as the pwm isn't used anyhow.
So only check for the clk in the presence of the pwm registers. This fixes
a failure to probe the gpio driver for the above mentioned gpio device.

Fixes: daf5576a2a0a ("gpio: mvebu: Add limited PWM support")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mvebu.c