aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-imx27.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2020-01-09 07:27:35 +0000
committerThierry Reding <[email protected]>2020-01-20 12:19:50 +0000
commitcba8d3bfdc967561b1c953f67d2053d526ae1f88 (patch)
tree7c5ef17f08bd261fcce6b3ecb0a28876ff2ec9af /drivers/pwm/pwm-imx27.c
parentpwm: sun4i: Move pwm_calculate() out of spin_lock() (diff)
downloadkernel-cba8d3bfdc967561b1c953f67d2053d526ae1f88.tar.gz
kernel-cba8d3bfdc967561b1c953f67d2053d526ae1f88.zip
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 <[email protected]> Reviewed-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-imx27.c')
0 files changed, 0 insertions, 0 deletions