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>
Sat, 31 Mar 2018 14:45:41 +0000 (15:45 +0100)
commita6677924cd6189e0de53e283fd9d718ebfe20bb4
tree11db70a7960797d6d704d4fbb631cfbc569892f7
parent801cdd3342bd5fd3d8453f662df7036676b9c75a
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