From: Axel Lin Date: Thu, 16 Feb 2012 05:58:19 +0000 (+0800) Subject: mfd: Show correct device id for wm8400 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1fa93bb2925781060971e984d11200c542a18fdb;p=mv-sheeva.git mfd: Show correct device id for wm8400 Signed-off-by: Axel Lin Acked-by: Mark Brown Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/wm8400-core.c b/drivers/mfd/wm8400-core.c index 2204893444a..e60d524e1d8 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; }