diff options
Diffstat (limited to 'drivers/regulator/88pm8607.c')
-rw-r--r-- | drivers/regulator/88pm8607.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/88pm8607.c b/drivers/regulator/88pm8607.c index c3482b954cb..0b76372aee7 100644 --- a/drivers/regulator/88pm8607.c +++ b/drivers/regulator/88pm8607.c | |||
@@ -320,7 +320,7 @@ static int __devinit pm8607_regulator_probe(struct platform_device *pdev) | |||
320 | struct resource *res; | 320 | struct resource *res; |
321 | int i; | 321 | int i; |
322 | 322 | ||
323 | res = platform_get_resource(pdev, IORESOURCE_IO, 0); | 323 | res = platform_get_resource(pdev, IORESOURCE_REG, 0); |
324 | if (res == NULL) { | 324 | if (res == NULL) { |
325 | dev_err(&pdev->dev, "No I/O resource!\n"); | 325 | dev_err(&pdev->dev, "No I/O resource!\n"); |
326 | return -EINVAL; | 326 | return -EINVAL; |