]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit6ced5ff0be8e94871ba846dfbddf69d21363f3d7
tree24be270333a2620ee11bdb3cde58769dc54f2c90
parent216a094de2521099e4ae04c5d07d8603ef9b24f1
pwm: bcm-iproc: handle clk_get_rate() return

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

Fixes: daa5abc41c80 ("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