diff options
Diffstat (limited to 'drivers/gpio/gpio-xgene-sb.c')
-rw-r--r-- | drivers/gpio/gpio-xgene-sb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-xgene-sb.c b/drivers/gpio/gpio-xgene-sb.c index b6a15c39293e..fb9d29a5d584 100644 --- a/drivers/gpio/gpio-xgene-sb.c +++ b/drivers/gpio/gpio-xgene-sb.c | |||
@@ -93,7 +93,7 @@ static int xgene_gpio_sb_probe(struct platform_device *pdev) | |||
93 | 93 | ||
94 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 94 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
95 | regs = devm_ioremap_resource(&pdev->dev, res); | 95 | regs = devm_ioremap_resource(&pdev->dev, res); |
96 | if (!regs) | 96 | if (IS_ERR(regs)) |
97 | return PTR_ERR(regs); | 97 | return PTR_ERR(regs); |
98 | 98 | ||
99 | ret = bgpio_init(&priv->bgc, &pdev->dev, 4, | 99 | ret = bgpio_init(&priv->bgc, &pdev->dev, 4, |