]> git.itanic.dy.fi Git - linux-stable/commit
clk-gate: fix bit # check in clk_register_gate()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Wed, 24 Dec 2014 14:43:27 +0000 (17:43 +0300)
committerJiri Slaby <jslaby@suse.cz>
Mon, 16 Mar 2015 13:58:21 +0000 (14:58 +0100)
commit13538bcabe53f06d64e65f6dd101f3ba07f3c9c0
tree4cb7c5b223975cb2a4e30f3654cf8589f2394894
parentcb3f9ca37d900d0084c985fa965356eb4b7fe6e9
clk-gate: fix bit # check in clk_register_gate()

commit 2e9dcdae4068460c45a308dd891be5248260251c upstream.

In case CLK_GATE_HIWORD_MASK flag is passed to clk_register_gate(), the bit #
should be no higher than 15, however the corresponding check is obviously off-
by-one.

Fixes: 045779942c04 ("clk: gate: add CLK_GATE_HIWORD_MASK")
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/clk/clk-gate.c