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)
commit86e4404af2a812935f6c71e7a33e4d0c3aab6538
tree50de87bbacd3665c6bfcc5c3a59f3b6ac63923c4
parent6c7b03e1aef2e92176435f4fa562cc483422d20f
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