]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
clk-bcm2835: Correct the prediv logic
authorPhil Elwell <phil@raspberrypi.org>
Wed, 1 Mar 2017 16:06:53 +0000 (16:06 +0000)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Mon, 28 Aug 2017 18:30:24 +0000 (15:30 -0300)
commit617e43fb900211b5746357ff6296c76f01256b3b
treef31022b84643d1e14405f111bd658980e37a6895
parent8940ce4e6fe5ea07205057317d175e37791b51a2
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