clk-bcm2835: Correct the prediv logic
authorPhil Elwell <phil@raspberrypi.org>
Wed, 1 Mar 2017 16:06:53 +0000 (16:06 +0000)
committerPhil Elwell <phil@raspberrypi.org>
Wed, 1 Mar 2017 17:17:32 +0000 (17:17 +0000)
commit488f9bc8e3def93e0baef53cee2026c2cb0d8956
treeefd348f615a1c72933bc2a2a2e220093741a2efa
parent173791eb5db0ed7f5d5a406ba0b09ad8a8118e3e
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