aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-moxart.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-moxart.c')
-rw-r--r--drivers/gpio/gpio-moxart.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-moxart.c b/drivers/gpio/gpio-moxart.c
index ccd45704e5fd..4661e181be04 100644
--- a/drivers/gpio/gpio-moxart.c
+++ b/drivers/gpio/gpio-moxart.c
@@ -113,10 +113,8 @@ static int moxart_gpio_probe(struct platform_device *pdev)
113 int ret; 113 int ret;
114 114
115 mgc = devm_kzalloc(dev, sizeof(*mgc), GFP_KERNEL); 115 mgc = devm_kzalloc(dev, sizeof(*mgc), GFP_KERNEL);
116 if (!mgc) { 116 if (!mgc)
117 dev_err(dev, "can't allocate GPIO chip container\n");
118 return -ENOMEM; 117 return -ENOMEM;
119 }
120 mgc->gpio = moxart_template_chip; 118 mgc->gpio = moxart_template_chip;
121 119
122 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 120 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);