projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88aec4f
)
mfd: Support additional parent IDs for wm831x
author
Mark Brown
<
[email protected]
>
Thu, 2 Dec 2010 16:25:43 +0000
(16:25 +0000)
committer
Samuel Ortiz
<
[email protected]
>
Wed, 22 Dec 2010 11:05:22 +0000
(12:05 +0100)
Some newer device revisions add a second parent ID. Support this in
the device validity checks done at startup.
Signed-off-by: Mark Brown <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Samuel Ortiz <
[email protected]
>
drivers/mfd/wm831x-core.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/wm831x-core.c
b/drivers/mfd/wm831x-core.c
index e1a2f4b785293227803a4ac133a9be87b9c78bef..76cadcf3b1fee2ccf996d318c01137c53ba852a7 100644
(file)
--- a/
drivers/mfd/wm831x-core.c
+++ b/
drivers/mfd/wm831x-core.c
@@
-1455,7
+1455,11
@@
int wm831x_device_init(struct wm831x *wm831x, unsigned long id, int irq)
dev_err(wm831x->dev, "Failed to read parent ID: %d\n", ret);
goto err;
}
- if (ret != 0x6204) {
+ switch (ret) {
+ case 0x6204:
+ case 0x6246:
+ break;
+ default:
dev_err(wm831x->dev, "Device is not a WM831x: ID %x\n", ret);
ret = -EINVAL;
goto err;