diff options
author | Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com> | 2020-07-18 07:46:06 +0300 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2020-07-30 12:27:13 +0300 |
commit | 6ced5ff0be8e94871ba846dfbddf69d21363f3d7 (patch) | |
tree | 24be270333a2620ee11bdb3cde58769dc54f2c90 /drivers/hwmon | |
parent | 216a094de2521099e4ae04c5d07d8603ef9b24f1 (diff) | |
download | linux-6ced5ff0be8e94871ba846dfbddf69d21363f3d7.tar.xz |
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>
Diffstat (limited to 'drivers/hwmon')
0 files changed, 0 insertions, 0 deletions