]> git.baikalelectronics.ru Git - kernel.git/commit
staging: mt7621-gpio: avoid to set up irqs if not defined in dts
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 18 Jun 2018 09:36:15 +0000 (11:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 12:50:58 +0000 (21:50 +0900)
commitd7989f846a94b962106ad503bbc8860a121e0e17
tree17199c095f146234ebb8c334e66d589964240bc2
parent8d7b36a1e80d26bf7d8e54c16c458d2d3b7ca04b
staging: mt7621-gpio: avoid to set up irqs if not defined in dts

If there is no interrupt defined in the dts 'irq_of_parse_and_map'
returns 0 and we should't set up interrupts for each gpio chip in
that case.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-gpio/gpio-mt7621.c