diff options
author | Mark Brown <broonie@linaro.org> | 2013-08-29 10:18:14 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2013-08-30 13:17:45 -0400 |
commit | 61abeba5222895d6900b13115f5d8eba7988d7d6 (patch) | |
tree | 402aee94cb85e758b6f037b76b82511981ff6d92 /drivers/leds | |
parent | c945cbcf453cb72dc2287fc4f7b63314f173b313 (diff) |
leds: wm831x-status: Request a REG resource
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>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/leds-wm831x-status.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/leds/leds-wm831x-status.c b/drivers/leds/leds-wm831x-status.c index c32dad4aedfb..0a1a13f3a6a5 100644 --- a/drivers/leds/leds-wm831x-status.c +++ b/drivers/leds/leds-wm831x-status.c | |||
@@ -230,9 +230,9 @@ static int wm831x_status_probe(struct platform_device *pdev) | |||
230 | int id = pdev->id % ARRAY_SIZE(chip_pdata->status); | 230 | int id = pdev->id % ARRAY_SIZE(chip_pdata->status); |
231 | int ret; | 231 | int ret; |
232 | 232 | ||
233 | res = platform_get_resource(pdev, IORESOURCE_IO, 0); | 233 | res = platform_get_resource(pdev, IORESOURCE_REG, 0); |
234 | if (res == NULL) { | 234 | if (res == NULL) { |
235 | dev_err(&pdev->dev, "No I/O resource\n"); | 235 | dev_err(&pdev->dev, "No register resource\n"); |
236 | ret = -EINVAL; | 236 | ret = -EINVAL; |
237 | goto err; | 237 | goto err; |
238 | } | 238 | } |