]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: bcm-iproc: handle clk_get_rate() return
authorRayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Sat, 18 Jul 2020 04:46:06 +0000 (21:46 -0700)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 30 Jul 2020 09:27:13 +0000 (11:27 +0200)
commit84752a98e1256480fb9b3b7b32db3f9331a9280a
tree24be270333a2620ee11bdb3cde58769dc54f2c90
parent4e2773697af983a882b8aa11bb4ebdd88f6eeb8a
pwm: bcm-iproc: handle clk_get_rate() return

Handle clk_get_rate() returning 0 to avoid possible division by zero.

Fixes: 84e0495bef60 ("pwm: Add support for Broadcom iProc PWM controller")
Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-bcm-iproc.c