diff options
Diffstat (limited to 'drivers/gpio/gpio-da9052.c')
-rw-r--r-- | drivers/gpio/gpio-da9052.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-da9052.c b/drivers/gpio/gpio-da9052.c index 389a4d2a4926..2e9578ec0ca1 100644 --- a/drivers/gpio/gpio-da9052.c +++ b/drivers/gpio/gpio-da9052.c | |||
@@ -212,7 +212,7 @@ static int da9052_gpio_probe(struct platform_device *pdev) | |||
212 | int ret; | 212 | int ret; |
213 | 213 | ||
214 | gpio = devm_kzalloc(&pdev->dev, sizeof(*gpio), GFP_KERNEL); | 214 | gpio = devm_kzalloc(&pdev->dev, sizeof(*gpio), GFP_KERNEL); |
215 | if (gpio == NULL) | 215 | if (!gpio) |
216 | return -ENOMEM; | 216 | return -ENOMEM; |
217 | 217 | ||
218 | gpio->da9052 = dev_get_drvdata(pdev->dev.parent); | 218 | gpio->da9052 = dev_get_drvdata(pdev->dev.parent); |