Boris Brezillon f96423f483 clk: at91: fix clk_programmable_set_parent()
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")
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
..
2016-04-15 16:02:16 -07:00
2015-11-10 15:00:03 -08:00
2016-04-15 16:49:59 -07:00
2016-04-15 16:50:01 -07:00
2016-03-02 17:44:59 -08:00
2016-04-15 16:50:04 -07:00
2016-03-02 17:46:55 -08:00
2016-06-16 09:18:29 +02:00
2016-05-27 15:26:11 -07:00
2016-03-02 17:48:03 -08:00
2016-04-15 16:50:07 -07:00
2016-03-02 17:48:26 -08:00
2015-07-20 11:11:32 -07:00
2015-05-21 11:55:05 -07:00
2016-03-02 17:48:47 -08:00
2015-07-20 11:11:22 -07:00
2016-04-15 16:50:10 -07:00
2016-03-03 11:27:48 -08:00
2015-07-20 11:11:33 -07:00
2016-04-15 16:50:12 -07:00
2016-04-15 16:50:14 -07:00
2016-04-19 18:56:15 -07:00
2016-04-15 16:50:18 -07:00
2016-03-02 17:50:32 -08:00
2016-03-02 17:50:58 -08:00
2016-04-15 16:50:21 -07:00
2015-07-20 10:53:04 -07:00
2016-04-15 16:50:23 -07:00
2016-04-15 16:50:27 -07:00
2016-05-19 14:09:30 -07:00