diff options
Diffstat (limited to 'drivers/gpio/gpio-em.c')
-rw-r--r-- | drivers/gpio/gpio-em.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-em.c b/drivers/gpio/gpio-em.c index 6bca1e125e12..c3ca2b1c1dfe 100644 --- a/drivers/gpio/gpio-em.c +++ b/drivers/gpio/gpio-em.c | |||
@@ -103,7 +103,7 @@ static int em_gio_irq_reqres(struct irq_data *d) | |||
103 | struct em_gio_priv *p = irq_data_get_irq_chip_data(d); | 103 | struct em_gio_priv *p = irq_data_get_irq_chip_data(d); |
104 | 104 | ||
105 | if (gpiochip_lock_as_irq(&p->gpio_chip, irqd_to_hwirq(d))) { | 105 | if (gpiochip_lock_as_irq(&p->gpio_chip, irqd_to_hwirq(d))) { |
106 | dev_err(p->gpio_chip.dev, | 106 | dev_err(p->gpio_chip.parent, |
107 | "unable to lock HW IRQ %lu for IRQ\n", | 107 | "unable to lock HW IRQ %lu for IRQ\n", |
108 | irqd_to_hwirq(d)); | 108 | irqd_to_hwirq(d)); |
109 | return -EINVAL; | 109 | return -EINVAL; |
@@ -332,7 +332,7 @@ static int em_gio_probe(struct platform_device *pdev) | |||
332 | gpio_chip->request = em_gio_request; | 332 | gpio_chip->request = em_gio_request; |
333 | gpio_chip->free = em_gio_free; | 333 | gpio_chip->free = em_gio_free; |
334 | gpio_chip->label = name; | 334 | gpio_chip->label = name; |
335 | gpio_chip->dev = &pdev->dev; | 335 | gpio_chip->parent = &pdev->dev; |
336 | gpio_chip->owner = THIS_MODULE; | 336 | gpio_chip->owner = THIS_MODULE; |
337 | gpio_chip->base = -1; | 337 | gpio_chip->base = -1; |
338 | gpio_chip->ngpio = ngpios; | 338 | gpio_chip->ngpio = ngpios; |