mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
mfd: 88pm860x: Convert to IORESOURCE_REG
Signed-off-by: Mark Brown <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Acked-by: Haojian Zhuang <[email protected]> Tested-by: Haojian Zhuang <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
5656098e19
commit
023670295a
4 changed files with 32 additions and 66 deletions
|
|
@ -197,7 +197,7 @@ static int pm860x_led_probe(struct platform_device *pdev)
|
|||
struct resource *res;
|
||||
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");
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue