linux/drivers/clk/at91
Boris Brezillon f96423f483 clk: at91: fix clk_programmable_set_parent()
Since commit 1bdf02326b ("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: 1bdf02326b ("clk: at91: make use of syscon/regmap internally")
Cc: <stable@vger.kernel.org>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/1468828152-18389-1-git-send-email-boris.brezillon@free-electrons.com
2016-07-18 17:45:41 -07:00
..
Makefile clk: at91: add generated clock driver 2015-10-01 12:48:11 -07:00
clk-generated.c The clk changes for this release cycle are mostly dominated by 2016-03-23 06:06:45 -07:00
clk-h32mx.c clk: at91: fix check of clk_register() returned value 2016-04-15 16:57:09 -07:00
clk-main.c The clk changes for this release cycle are mostly dominated by 2016-03-23 06:06:45 -07:00
clk-master.c The clk changes for this release cycle are mostly dominated by 2016-03-23 06:06:45 -07:00
clk-peripheral.c clk: at91: remove useless includes 2016-02-17 17:53:04 +01:00
clk-pll.c clk: at91: remove IRQ handling and use polling 2016-02-17 17:52:59 +01:00
clk-plldiv.c clk: at91: remove useless includes 2016-02-17 17:53:04 +01:00
clk-programmable.c clk: at91: fix clk_programmable_set_parent() 2016-07-18 17:45:41 -07:00
clk-slow.c The clk changes for this release cycle are mostly dominated by 2016-03-23 06:06:45 -07:00
clk-smd.c The clk changes for this release cycle are mostly dominated by 2016-03-23 06:06:45 -07:00
clk-system.c clk: at91: remove IRQ handling and use polling 2016-02-17 17:52:59 +01:00
clk-usb.c The clk changes for this release cycle are mostly dominated by 2016-03-23 06:06:45 -07:00
clk-utmi.c clk: at91: remove IRQ handling and use polling 2016-02-17 17:52:59 +01:00
pmc.c clk: at91: pmc: remove useless capacities handling 2016-02-17 17:53:04 +01:00
pmc.h clk: at91: pmc: move pmc structures to C file 2016-02-17 17:53:00 +01:00
sckc.c clk: at91: add slow clks driver 2014-05-07 18:27:45 +02:00
sckc.h clk: at91: add slow clks driver 2014-05-07 18:27:45 +02:00