2012-02-16 05:58:31

by Axel Lin

[permalink] [raw]
Subject: [PATCH] mfd: Show correct device id for wm8400

Signed-off-by: Axel Lin <[email protected]>
---
drivers/mfd/wm8400-core.c | 3 +--
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;
}

--
1.7.5.4



2012-02-16 06:19:23

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] mfd: Show correct device id for wm8400

On Thu, Feb 16, 2012 at 01:58:19PM +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <[email protected]>

Acked-by: Mark Brown <[email protected]>


Attachments:
(No filename) (165.00 B)
signature.asc (836.00 B)
Digital signature
Download all attachments

2012-02-23 15:48:21

by Samuel Ortiz

[permalink] [raw]
Subject: Re: [PATCH] mfd: Show correct device id for wm8400

Hi Axel,

On Thu, Feb 16, 2012 at 01:58:19PM +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <[email protected]>
Thanks, applied.

Cheers,
Samuel.

--
Intel Open Source Technology Centre
http://oss.intel.com/