|
@@ -1646,7 +1646,7 @@ static int gpiochip_irq_map(struct irq_domain *d, unsigned int irq,
|
|
* This lock class tells lockdep that GPIO irqs are in a different
|
|
* This lock class tells lockdep that GPIO irqs are in a different
|
|
* category than their parents, so it won't report false recursion.
|
|
* category than their parents, so it won't report false recursion.
|
|
*/
|
|
*/
|
|
- irq_set_lockdep_class(irq, chip->lock_key);
|
|
|
|
|
|
+ irq_set_lockdep_class(irq, chip->irq.lock_key);
|
|
irq_set_chip_and_handler(irq, chip->irq.chip, chip->irq.handler);
|
|
irq_set_chip_and_handler(irq, chip->irq.chip, chip->irq.handler);
|
|
/* Chips that use nested thread handlers have them marked */
|
|
/* Chips that use nested thread handlers have them marked */
|
|
if (chip->irq.nested)
|
|
if (chip->irq.nested)
|
|
@@ -1830,7 +1830,7 @@ int gpiochip_irqchip_add_key(struct gpio_chip *gpiochip,
|
|
gpiochip->irq.handler = handler;
|
|
gpiochip->irq.handler = handler;
|
|
gpiochip->irq.default_type = type;
|
|
gpiochip->irq.default_type = type;
|
|
gpiochip->to_irq = gpiochip_to_irq;
|
|
gpiochip->to_irq = gpiochip_to_irq;
|
|
- gpiochip->lock_key = lock_key;
|
|
|
|
|
|
+ gpiochip->irq.lock_key = lock_key;
|
|
gpiochip->irq.domain = irq_domain_add_simple(of_node,
|
|
gpiochip->irq.domain = irq_domain_add_simple(of_node,
|
|
gpiochip->ngpio, first_irq,
|
|
gpiochip->ngpio, first_irq,
|
|
&gpiochip_domain_ops, gpiochip);
|
|
&gpiochip_domain_ops, gpiochip);
|