aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-02-16 13:58:19 +0800
committerSamuel Ortiz <sameo@linux.intel.com>2012-03-06 18:46:46 +0100
commit1fa93bb2925781060971e984d11200c542a18fdb (patch)
tree8c6e5645f2384f3ddddd8e80b06054c101f30d27 /drivers/mfd
parentf0447a690e2cfe005a605253cf6bdfa9b9fd5d6e (diff)
downloadkernel_goldelico_gta04-1fa93bb2925781060971e984d11200c542a18fdb.zip
kernel_goldelico_gta04-1fa93bb2925781060971e984d11200c542a18fdb.tar.gz
kernel_goldelico_gta04-1fa93bb2925781060971e984d11200c542a18fdb.tar.bz2
mfd: Show correct device id for wm8400
Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/wm8400-core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mfd/wm8400-core.c b/drivers/mfd/wm8400-core.c
index 2204893..e60d524 100644
--- a/drivers/mfd/wm8400-core.c
+++ b/drivers/mfd/wm8400-core.c
@@ -271,8 +271,7 @@ static int wm8400_init(struct wm8400 *wm8400,
return -EIO;
}
if (i != reg_data[WM8400_RESET_ID].default_val) {
- dev_err(wm8400->dev, "Device is not a WM8400, ID is %x\n",
- reg);
+ dev_err(wm8400->dev, "Device is not a WM8400, ID is %x\n", i);
return -ENODEV;
}