pwm: ab8500: Fix error code in probe()
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 22 May 2023 11:07:42 +0000 (14:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2023 14:21:59 +0000 (16:21 +0200)
commit75439e6cd2a355070dd68808243fca384b7efef0
tree0589e6c43f712d563d46208d48bc2c6073f8308c
parent61aad933e53d5ad2284401b2d0de02aaabcad9e2
pwm: ab8500: Fix error code in probe()

[ Upstream commit cdcffafc4d845cc0c6392cba168c7a942734cce7 ]

This code accidentally return positive EINVAL instead of negative
-EINVAL.

Fixes: eb41f334589d ("pwm: ab8500: Fix register offset calculation to not depend on probe order")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pwm/pwm-ab8500.c