Uwe Kleine-König 7bee9f9a13 gpio: mvebu: only fail on missing clk if pwm is actually to be used
[ Upstream commit c8da642d41a6811c21177c9994aa7dc35be67d46 ]

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: 757642f9a584 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-01-13 10:01:01 +01:00
..
2017-08-14 15:01:13 +02:00
2018-05-16 10:10:26 +02:00
2017-05-22 17:18:19 +02:00
2016-12-30 09:18:10 +01:00
2017-08-31 13:57:57 +02:00
2016-09-13 10:35:56 +02:00
2016-12-30 09:18:10 +01:00
2017-08-14 15:03:39 +02:00
2017-03-16 21:52:10 +01:00
2017-08-23 09:21:54 +02:00