pwm: sun4i: Fix inconsistent IS_ERR and PTR_ERR
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 9 Jan 2020 07:27:35 +0000 (01:27 -0600)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 20 Jan 2020 12:19:50 +0000 (13:19 +0100)
commitcba8d3bfdc967561b1c953f67d2053d526ae1f88
tree7c5ef17f08bd261fcce6b3ecb0a28876ff2ec9af
parent3e954d9626895d374704bb49a8fb538a974ebcf5
pwm: sun4i: Fix inconsistent IS_ERR and PTR_ERR

Fix inconsistent IS_ERR and PTR_ERR in sun4i_pwm_probe().

The proper pointers to be passed as arguments are pwm->clk and pwm->bus_clk.

This bug was detected with the help of Coccinelle.

Fixes: b8d74644f34a ("pwm: sun4i: Prefer "mod" clock to unnamed")
Fixes: 5b090b430d75 ("pwm: sun4i: Add an optional probe for bus clock")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-sun4i.c