mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
mfd: Change rdc321x resources flags to IORESOURCE_IO
The rdc321x southbridge PCI device has no MEM PCI resources that we could pass to mfd_add_devices. Since 33254dd5, mfd_add_device checks for the mem_base argument that we set to NULL. Changing the resources passed to our MFD cells from IORESOURCE_MEM to IORESOURCE_IO fixes that. Since we use those resources as offsets to the PCI configuration space base address of the southbridge device this is also more adequate. Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
380c09f648
commit
8deca39e5c
3 changed files with 6 additions and 6 deletions
|
|
@ -147,7 +147,7 @@ static int __devinit rdc321x_gpio_probe(struct platform_device *pdev)
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "gpio-reg1");
|
||||
r = platform_get_resource_byname(pdev, IORESOURCE_IO, "gpio-reg1");
|
||||
if (!r) {
|
||||
dev_err(&pdev->dev, "failed to get gpio-reg1 resource\n");
|
||||
err = -ENODEV;
|
||||
|
|
@ -159,7 +159,7 @@ static int __devinit rdc321x_gpio_probe(struct platform_device *pdev)
|
|||
rdc321x_gpio_dev->reg1_ctrl_base = r->start;
|
||||
rdc321x_gpio_dev->reg1_data_base = r->start + 0x4;
|
||||
|
||||
r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "gpio-reg2");
|
||||
r = platform_get_resource_byname(pdev, IORESOURCE_IO, "gpio-reg2");
|
||||
if (!r) {
|
||||
dev_err(&pdev->dev, "failed to get gpio-reg2 resource\n");
|
||||
err = -ENODEV;
|
||||
|
|
|
|||
Loading…
Reference in a new issue