diff options
| -rw-r--r-- | drivers/gpio/gpio-pl061.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpio/gpio-pl061.c b/drivers/gpio/gpio-pl061.c index f22f7f3e2e53..b4d42112d02d 100644 --- a/drivers/gpio/gpio-pl061.c +++ b/drivers/gpio/gpio-pl061.c | |||
| @@ -286,11 +286,6 @@ static int pl061_probe(struct amba_device *adev, const struct amba_id *id) | |||
| 286 | if (!chip->base) | 286 | if (!chip->base) |
| 287 | return -ENOMEM; | 287 | return -ENOMEM; |
| 288 | 288 | ||
| 289 | chip->domain = irq_domain_add_simple(adev->dev.of_node, PL061_GPIO_NR, | ||
| 290 | irq_base, &pl061_domain_ops, chip); | ||
| 291 | if (!chip->domain) | ||
| 292 | return -ENODEV; | ||
| 293 | |||
| 294 | spin_lock_init(&chip->lock); | 289 | spin_lock_init(&chip->lock); |
| 295 | 290 | ||
| 296 | chip->gc.request = pl061_gpio_request; | 291 | chip->gc.request = pl061_gpio_request; |
| @@ -320,6 +315,11 @@ static int pl061_probe(struct amba_device *adev, const struct amba_id *id) | |||
| 320 | irq_set_chained_handler(irq, pl061_irq_handler); | 315 | irq_set_chained_handler(irq, pl061_irq_handler); |
| 321 | irq_set_handler_data(irq, chip); | 316 | irq_set_handler_data(irq, chip); |
| 322 | 317 | ||
| 318 | chip->domain = irq_domain_add_simple(adev->dev.of_node, PL061_GPIO_NR, | ||
| 319 | irq_base, &pl061_domain_ops, chip); | ||
| 320 | if (!chip->domain) | ||
| 321 | return -ENODEV; | ||
| 322 | |||
| 323 | for (i = 0; i < PL061_GPIO_NR; i++) { | 323 | for (i = 0; i < PL061_GPIO_NR; i++) { |
| 324 | if (pdata) { | 324 | if (pdata) { |
| 325 | if (pdata->directions & (1 << i)) | 325 | if (pdata->directions & (1 << i)) |
