diff options
Diffstat (limited to 'drivers/gpio/gpio-tb10x.c')
-rw-r--r-- | drivers/gpio/gpio-tb10x.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-tb10x.c b/drivers/gpio/gpio-tb10x.c index 091ffaaec635..ac6f2a9841e5 100644 --- a/drivers/gpio/gpio-tb10x.c +++ b/drivers/gpio/gpio-tb10x.c | |||
@@ -193,6 +193,9 @@ static int tb10x_gpio_probe(struct platform_device *pdev) | |||
193 | 193 | ||
194 | tb10x_gpio->gc.label = | 194 | tb10x_gpio->gc.label = |
195 | devm_kasprintf(&pdev->dev, GFP_KERNEL, "%pOF", pdev->dev.of_node); | 195 | devm_kasprintf(&pdev->dev, GFP_KERNEL, "%pOF", pdev->dev.of_node); |
196 | if (!tb10x_gpio->gc.label) | ||
197 | return -ENOMEM; | ||
198 | |||
196 | tb10x_gpio->gc.parent = &pdev->dev; | 199 | tb10x_gpio->gc.parent = &pdev->dev; |
197 | tb10x_gpio->gc.owner = THIS_MODULE; | 200 | tb10x_gpio->gc.owner = THIS_MODULE; |
198 | tb10x_gpio->gc.direction_input = tb10x_gpio_direction_in; | 201 | tb10x_gpio->gc.direction_input = tb10x_gpio_direction_in; |