Skip to content

Commit 1fa93bb

Browse files
AxelLinSamuel Ortiz
authored andcommitted
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>
1 parent f0447a6 commit 1fa93bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/mfd/wm8400-core.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,7 @@ static int wm8400_init(struct wm8400 *wm8400,
271271
return -EIO;
272272
}
273273
if (i != reg_data[WM8400_RESET_ID].default_val) {
274-
dev_err(wm8400->dev, "Device is not a WM8400, ID is %x\n",
275-
reg);
274+
dev_err(wm8400->dev, "Device is not a WM8400, ID is %x\n", i);
276275
return -ENODEV;
277276
}
278277

0 commit comments

Comments
 (0)