leds: wm831x-status: Request a REG resource
authorMark Brown <broonie@linaro.org>
Thu, 29 Aug 2013 14:18:14 +0000 (07:18 -0700)
committerBryan Wu <cooloney@gmail.com>
Fri, 30 Aug 2013 17:17:45 +0000 (10:17 -0700)
The wm831x-status driver was not converted to use a REG resource when they
were introduced and the rest of the wm831x drivers converted, causing it
to fail to probe due to requesting the wrong resource type.

Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org # v3.7+
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-wm831x-status.c

index c32dad4aedfb265261f074bbd700884d8b725e07..0a1a13f3a6a51b1037bc7f61899d645c5aa8b115 100644 (file)
@@ -230,9 +230,9 @@ static int wm831x_status_probe(struct platform_device *pdev)
        int id = pdev->id % ARRAY_SIZE(chip_pdata->status);
        int ret;
 
-       res = platform_get_resource(pdev, IORESOURCE_IO, 0);
+       res = platform_get_resource(pdev, IORESOURCE_REG, 0);
        if (res == NULL) {
-               dev_err(&pdev->dev, "No I/O resource\n");
+               dev_err(&pdev->dev, "No register resource\n");
                ret = -EINVAL;
                goto err;
        }
This page took 0.025386 seconds and 5 git commands to generate.