]> 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)
commit71fcd7577f7a47947f7a8c048655788ecbba3a70
tree17199c095f146234ebb8c334e66d589964240bc2
parentf4023b895fb49cd5c7d77903e49a9cf70d99ca7c
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