diff options
Diffstat (limited to 'drivers/gpio/rdc321x-gpio.c')
-rw-r--r-- | drivers/gpio/rdc321x-gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/rdc321x-gpio.c b/drivers/gpio/rdc321x-gpio.c index e344907da5b0..22f31dc50104 100644 --- a/drivers/gpio/rdc321x-gpio.c +++ b/drivers/gpio/rdc321x-gpio.c | |||
@@ -147,7 +147,7 @@ static int __devinit rdc321x_gpio_probe(struct platform_device *pdev) | |||
147 | return -ENOMEM; | 147 | return -ENOMEM; |
148 | } | 148 | } |
149 | 149 | ||
150 | r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "gpio-reg1"); | 150 | r = platform_get_resource_byname(pdev, IORESOURCE_IO, "gpio-reg1"); |
151 | if (!r) { | 151 | if (!r) { |
152 | dev_err(&pdev->dev, "failed to get gpio-reg1 resource\n"); | 152 | dev_err(&pdev->dev, "failed to get gpio-reg1 resource\n"); |
153 | err = -ENODEV; | 153 | err = -ENODEV; |
@@ -159,7 +159,7 @@ static int __devinit rdc321x_gpio_probe(struct platform_device *pdev) | |||
159 | rdc321x_gpio_dev->reg1_ctrl_base = r->start; | 159 | rdc321x_gpio_dev->reg1_ctrl_base = r->start; |
160 | rdc321x_gpio_dev->reg1_data_base = r->start + 0x4; | 160 | rdc321x_gpio_dev->reg1_data_base = r->start + 0x4; |
161 | 161 | ||
162 | r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "gpio-reg2"); | 162 | r = platform_get_resource_byname(pdev, IORESOURCE_IO, "gpio-reg2"); |
163 | if (!r) { | 163 | if (!r) { |
164 | dev_err(&pdev->dev, "failed to get gpio-reg2 resource\n"); | 164 | dev_err(&pdev->dev, "failed to get gpio-reg2 resource\n"); |
165 | err = -ENODEV; | 165 | err = -ENODEV; |