Merge tag 'mfd_3.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6
[~shefty/rdma-dev.git] / drivers / mfd / wm8400-core.c
index 237764ae5f9bdb8deaa5a276e4cd902dcfa065a5..1189a17f0f25f6362b5d97c2ff65e8d7cd685c5f 100644 (file)
@@ -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;
        }