OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0044cbc
)
clk: wm831x: Initialise wm831x pointer on init
author
Mark Brown
<broonie@linaro.org>
Thu, 29 Aug 2013 11:21:01 +0000
(12:21 +0100)
committer
Mike Turquette
<mturquette@linaro.org>
Fri, 30 Aug 2013 18:57:53 +0000
(11:57 -0700)
Otherwise any attempt to interact with the hardware will crash. This is
what happens when drivers get written blind.
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk-wm831x.c
patch
|
blob
|
history
diff --git
a/drivers/clk/clk-wm831x.c
b/drivers/clk/clk-wm831x.c
index
c370ecb
..
805b4c3
100644
(file)
--- a/
drivers/clk/clk-wm831x.c
+++ b/
drivers/clk/clk-wm831x.c
@@
-360,6
+360,8
@@
static int wm831x_clk_probe(struct platform_device *pdev)
if (!clkdata)
return -ENOMEM;
+ clkdata->wm831x = wm831x;
+
/* XTAL_ENA can only be set via OTP/InstantConfig so just read once */
ret = wm831x_reg_read(wm831x, WM831X_CLOCK_CONTROL_2);
if (ret < 0) {