Skip to content
Snippets Groups Projects
Forked from Eclipse Projects / Oniro Core / Oniro
Source project has a limited visibility.
user avatar
Lokesh Vutla authored
[ Upstream commit 1f0f1e80 ]

When there are other PWM controllers enabled along with pwm-lp3943,
pwm-lp3942 is failing to probe with -EEXIST error. This is because
other PWM controllers are probed first and assigned PWM base 0 and
pwm-lp3943 is requesting for 0 again.

In order to avoid this, assign the chip base with -1, so that it is
dynamically allocated.

Fixes: af66b3c0 ("pwm: Add LP3943 PWM driver")
Signed-off-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: default avatarUwe Kleine-König <u.kleine-könig@pengutronix.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
e514cfc3
History
Name Last commit Last update