]> 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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 8 Aug 2017 12:51:58 +0000 (14:51 +0200)
commitd804675f0febfdcc3228d2fff7517bcbcc4fcabf
tree8abd8e1acb5f6678eb1ee07f6be0d07f58d7df78
parent71dd4e0dc6714f4b8baf4ed079d1232afe9f1251
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