diff options
Diffstat (limited to 'drivers/soc/fsl/qe/gpio.c')
-rw-r--r-- | drivers/soc/fsl/qe/gpio.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/soc/fsl/qe/gpio.c b/drivers/soc/fsl/qe/gpio.c index 819bed0f5667..51b3a47b5a55 100644 --- a/drivers/soc/fsl/qe/gpio.c +++ b/drivers/soc/fsl/qe/gpio.c | |||
@@ -179,8 +179,10 @@ struct qe_pin *qe_pin_request(struct device_node *np, int index) | |||
179 | if (err < 0) | 179 | if (err < 0) |
180 | goto err0; | 180 | goto err0; |
181 | gc = gpio_to_chip(err); | 181 | gc = gpio_to_chip(err); |
182 | if (WARN_ON(!gc)) | 182 | if (WARN_ON(!gc)) { |
183 | err = -ENODEV; | ||
183 | goto err0; | 184 | goto err0; |
185 | } | ||
184 | 186 | ||
185 | if (!of_device_is_compatible(gc->of_node, "fsl,mpc8323-qe-pario-bank")) { | 187 | if (!of_device_is_compatible(gc->of_node, "fsl,mpc8323-qe-pario-bank")) { |
186 | pr_debug("%s: tried to get a non-qe pin\n", __func__); | 188 | pr_debug("%s: tried to get a non-qe pin\n", __func__); |