aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-nomadik.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pinctrl/pinctrl-nomadik.c')
-rw-r--r--drivers/pinctrl/pinctrl-nomadik.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pinctrl/pinctrl-nomadik.c b/drivers/pinctrl/pinctrl-nomadik.c
index 983662e846a4..6559e1436768 100644
--- a/drivers/pinctrl/pinctrl-nomadik.c
+++ b/drivers/pinctrl/pinctrl-nomadik.c
@@ -1060,14 +1060,14 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s,
1060 (mode < 0) ? "unknown" : modes[mode], 1060 (mode < 0) ? "unknown" : modes[mode],
1061 pull ? "pull" : "none"); 1061 pull ? "pull" : "none");
1062 1062
1063 if (label && !is_out) { 1063 if (!is_out) {
1064 int irq = gpio_to_irq(gpio); 1064 int irq = gpio_to_irq(gpio);
1065 struct irq_desc *desc = irq_to_desc(irq); 1065 struct irq_desc *desc = irq_to_desc(irq);
1066 1066
1067 /* This races with request_irq(), set_irq_type(), 1067 /* This races with request_irq(), set_irq_type(),
1068 * and set_irq_wake() ... but those are "rare". 1068 * and set_irq_wake() ... but those are "rare".
1069 */ 1069 */
1070 if (irq >= 0 && desc->action) { 1070 if (irq > 0 && desc && desc->action) {
1071 char *trigger; 1071 char *trigger;
1072 u32 bitmask = nmk_gpio_get_bitmask(gpio); 1072 u32 bitmask = nmk_gpio_get_bitmask(gpio);
1073 1073