]> git.baikalelectronics.ru Git - kernel.git/commit
clk: at91: fix PERIPHERAL_MAX_SHIFT definition
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Thu, 28 May 2015 12:01:08 +0000 (14:01 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 19 Jun 2015 12:43:40 +0000 (14:43 +0200)
commit98fb575624b51aa63044256714da2bcdb5adcf83
tree50de87bbacd3665c6bfcc5c3a59f3b6ac63923c4
parentffe91830904046b6a064090ebbd50158847f9b08
clk: at91: fix PERIPHERAL_MAX_SHIFT definition

Fix the PERIPHERAL_MAX_SHIFT definition (3 instead of 4) and adapt the
round_rate and set_rate logic accordingly.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: "Wu, Songjun" <Songjun.Wu@atmel.com>
drivers/clk/at91/clk-peripheral.c