summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/Makefile
diff options
context:
space:
mode:
authorBoris BREZILLON <boris.brezillon@free-electrons.com>2014-12-18 21:05:30 +0100
committerThierry Reding <thierry.reding@gmail.com>2015-01-30 12:16:00 +0100
commitdf6922adec987b1c7f07870a00f899fbc9a7d4cc (patch)
tree75bad2f5ed22e5c7fb71fee2a8151ce00e5f2968 /drivers/pwm/Makefile
parentd2048c49152a414efcf8b2696896bc8803ef2f1e (diff)
downloadlinux-stable-df6922adec987b1c7f07870a00f899fbc9a7d4cc.tar.gz
linux-stable-df6922adec987b1c7f07870a00f899fbc9a7d4cc.tar.bz2
linux-stable-df6922adec987b1c7f07870a00f899fbc9a7d4cc.zip
pwm: atmel-hlcdc: Prevent division by zero
The slow and system clock should never return a rate of zero, but this might happen if the clocks property defined in the DT is referencing the wrong clocks. Prevent any division by zero from happening by testing the clk_freq value before calling do_div(). Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/Makefile')
0 files changed, 0 insertions, 0 deletions