Alexandre Belloni e7a7f972f9 gpio: pca953x: fix irq_domain_add_simple usage
We actually have to pass chip as the host_data parameter of
irq_domain_add_simple() as later on, it is used to initialize chip_data
in pca953x_gpio_irq_map(). Failing to do so is leading to a NULL pointer
dereference after calling irq_data_get_irq_chip_data() in
pca953x_irq_mask(), pca953x_irq_unmask(), pca953x_irq_bus_lock(),
pca953x_irq_bus_sync_unlock() and pca953x_irq_set_type().

Fixes regression introduced by commit
0e8f2fdacf1d44651aa7e57063c76142d1f4988b (gpio: pca953x: use simple
irqdomain)

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2013-04-11 19:01:19 +02:00
..
2013-04-05 19:29:36 -07:00
2013-03-23 12:33:36 -07:00
2013-02-21 15:27:22 -08:00
2013-02-27 19:10:15 -08:00
2013-02-27 19:10:15 -08:00
2013-04-05 19:29:36 -07:00
2013-03-01 13:39:00 -08:00
2013-03-18 08:17:14 -07:00
2013-03-27 09:25:11 -07:00
2013-03-15 12:58:12 -07:00
2013-03-18 08:27:41 -07:00
2013-02-27 19:10:18 -08:00
2013-02-26 09:34:29 -08:00
2013-02-27 19:10:18 -08:00
2013-03-21 13:35:39 +01:00
2013-03-25 16:04:22 -07:00
2013-04-05 10:04:41 -07:00
2013-03-28 15:53:33 -07:00
2013-02-27 19:10:19 -08:00
2013-03-27 12:56:25 -07:00
2013-02-22 23:31:31 -05:00
2013-02-21 13:57:13 -08:00