Skip to content
Commit 6ced5ff0 authored by Rayagonda Kokatanur's avatar Rayagonda Kokatanur Committed by Thierry Reding
Browse files

pwm: bcm-iproc: handle clk_get_rate() return



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

Fixes: daa5abc4 ("pwm: Add support for Broadcom iProc PWM controller")
Signed-off-by: default avatarRayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Signed-off-by: default avatarScott Branden <scott.branden@broadcom.com>
Reviewed-by: default avatarRay Jui <ray.jui@broadcom.com>
Reviewed-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 216a094d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment