clk-bcm2835: Correct the prediv logic
authorPhil Elwell <phil@raspberrypi.org>
Wed, 1 Mar 2017 16:06:53 +0000 (16:06 +0000)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 9 Mar 2017 17:52:58 +0000 (17:52 +0000)
commit99551f177e0c00af16228bc6d5d5234e72694803
tree9200aed7e152a76ca1f472992b2d8c4835c35064
parenta8e90198fe4842224d1c8e7f845c17bacd7657c2
clk-bcm2835: Correct the prediv logic

If a clock has the prediv flag set, both the integer and fractional
parts must be scaled when calculating the resulting frequency.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/clk/bcm/clk-bcm2835.c