aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/wm831x-isink.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/regulator/wm831x-isink.c')
-rw-r--r--drivers/regulator/wm831x-isink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/wm831x-isink.c b/drivers/regulator/wm831x-isink.c
index 0d207c297714..2646a1902b33 100644
--- a/drivers/regulator/wm831x-isink.c
+++ b/drivers/regulator/wm831x-isink.c
@@ -172,9 +172,9 @@ static __devinit int wm831x_isink_probe(struct platform_device *pdev)
172 172
173 isink->wm831x = wm831x; 173 isink->wm831x = wm831x;
174 174
175 res = platform_get_resource(pdev, IORESOURCE_IO, 0); 175 res = platform_get_resource(pdev, IORESOURCE_REG, 0);
176 if (res == NULL) { 176 if (res == NULL) {
177 dev_err(&pdev->dev, "No I/O resource\n"); 177 dev_err(&pdev->dev, "No REG resource\n");
178 ret = -EINVAL; 178 ret = -EINVAL;
179 goto err; 179 goto err;
180 } 180 }