diff options
Diffstat (limited to 'drivers/gpio/gpio-sta2x11.c')
-rw-r--r-- | drivers/gpio/gpio-sta2x11.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-sta2x11.c b/drivers/gpio/gpio-sta2x11.c index 558542552aae..9b5564564bcd 100644 --- a/drivers/gpio/gpio-sta2x11.c +++ b/drivers/gpio/gpio-sta2x11.c | |||
@@ -371,6 +371,8 @@ static int gsta_probe(struct platform_device *dev) | |||
371 | res = platform_get_resource(dev, IORESOURCE_MEM, 0); | 371 | res = platform_get_resource(dev, IORESOURCE_MEM, 0); |
372 | 372 | ||
373 | chip = devm_kzalloc(&dev->dev, sizeof(*chip), GFP_KERNEL); | 373 | chip = devm_kzalloc(&dev->dev, sizeof(*chip), GFP_KERNEL); |
374 | if (!chip) | ||
375 | return -ENOMEM; | ||
374 | chip->dev = &dev->dev; | 376 | chip->dev = &dev->dev; |
375 | chip->reg_base = devm_request_and_ioremap(&dev->dev, res); | 377 | chip->reg_base = devm_request_and_ioremap(&dev->dev, res); |
376 | 378 | ||