]> git.ipfire.org Git - people/arne_f/kernel.git/commit
clk: at91: fix clk_programmable_set_parent()
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 18 Jul 2016 07:49:12 +0000 (09:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Aug 2016 10:54:47 +0000 (12:54 +0200)
commit3e70b591806a05176ed475af16b5f29023b6bb47
tree1b1e60cc1bef54f22967778799cfa45041666b4f
parent690a5f1e8e725a8eb799f281d08fcc3b7f3e2b4a
clk: at91: fix clk_programmable_set_parent()

commit f96423f483b1a7854270335b319e8d1cdd6f3585 upstream.

Since commit 1bdf02326b71e ("clk: at91: make use of syscon/regmap
internally"), clk_programmable_set_parent() is always selecting the
first parent (AKA slow_clk), no matter what's passed in the 'index'
parameter.

Fix that by initializing the pckr variable to the index value.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: Hans Verkuil <hans.verkuil@cisco.com>
Fixes: 1bdf02326b71e ("clk: at91: make use of syscon/regmap internally")
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/1468828152-18389-1-git-send-email-boris.brezillon@free-electrons.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/at91/clk-programmable.c