mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
pinctrl: st: Fix Sparse error
This change fixes below sparse error, drivers/pinctrl/pinctrl-st.c:1515:31: error: incompatible types for operation (>) drivers/pinctrl/pinctrl-st.c:1515:31: left side has type void [noderef] <asn:2>*irqmux_base drivers/pinctrl/pinctrl-st.c:1515:31: right side has type int Cc: Maxime Coquelin <[email protected]> Cc: Patrice Chotard <[email protected]> CC: Linus Walleij <[email protected]> Cc: Srinivas Kandagatla <[email protected]> Signed-off-by: Pramod Gurav <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
dc603c650a
commit
2e53727658
1 changed files with 1 additions and 1 deletions
|
|
@ -1512,7 +1512,7 @@ static int st_gpiolib_register_bank(struct st_pinctrl *info,
|
|||
gpio_irq, st_gpio_irq_handler);
|
||||
}
|
||||
|
||||
if (info->irqmux_base > 0 || gpio_irq > 0) {
|
||||
if (info->irqmux_base || gpio_irq > 0) {
|
||||
err = gpiochip_irqchip_add(&bank->gpio_chip, &st_gpio_irqchip,
|
||||
0, handle_simple_irq,
|
||||
IRQ_TYPE_LEVEL_LOW);
|
||||
|
|
|
|||
Loading…
Reference in a new issue