diff options
author | Stefan Wahren <[email protected]> | 2015-12-01 22:55:40 +0000 |
---|---|---|
committer | Thierry Reding <[email protected]> | 2015-12-16 16:45:10 +0100 |
commit | fd13c14426299e75983a0cd3edf53dfa4083a70a (patch) | |
tree | 1698122b905b9bfbaa364b11dc38ad9ac435674b /tools/perf/scripts/python | |
parent | ebe88b6ae41ff8f2b48608b6019c4341aa24bcea (diff) |
pwm: bcm2835: Prevent division by zero
It's possible that the PWM clock becomes an orphan. So better check the
result of clk_get_rate() in order to prevent a division by zero.
Signed-off-by: Stefan Wahren <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions