From: Axel Lin Date: Wed, 1 May 2013 15:32:05 +0000 (+0800) Subject: clk: wm831x: Fix wm831x_clkout_get_parent X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~27^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcc7fd20e2e9df6f29db7d524623e0c7023dffc6;p=pandora-kernel.git clk: wm831x: Fix wm831x_clkout_get_parent Current code looks strange because calling wm831x_clkout_set_parent() with 0 as parent parameter, wm831x_clkout_get_parent() will return 1. According to the datasheet: R16528 (4090h) Clock Control1 BIT 0: CLKOUT output source select 0 = FLL output 1 = 32.768kHz oscillator Thus fix the entry order in wm831x_clkout_parents[] to make it has the same meaning as the datasheet and make the return value of wm831x_clkout_get_parent() consistent with the parent pass to wm831x_clkout_set_parent(). Signed-off-by: Axel Lin Acked-by: Mark Brown Signed-off-by: Mike Turquette --- Reading git-diff-tree failed