diff options
-rw-r--r-- | drivers/mtd/nand/gpio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/nand/gpio.c b/drivers/mtd/nand/gpio.c index e826f898241f..8dfdbb63e096 100644 --- a/drivers/mtd/nand/gpio.c +++ b/drivers/mtd/nand/gpio.c | |||
@@ -211,10 +211,8 @@ static int gpio_nand_probe(struct platform_device *pdev) | |||
211 | return -EINVAL; | 211 | return -EINVAL; |
212 | 212 | ||
213 | gpiomtd = devm_kzalloc(&pdev->dev, sizeof(*gpiomtd), GFP_KERNEL); | 213 | gpiomtd = devm_kzalloc(&pdev->dev, sizeof(*gpiomtd), GFP_KERNEL); |
214 | if (!gpiomtd) { | 214 | if (!gpiomtd) |
215 | dev_err(&pdev->dev, "failed to create NAND MTD\n"); | ||
216 | return -ENOMEM; | 215 | return -ENOMEM; |
217 | } | ||
218 | 216 | ||
219 | chip = &gpiomtd->nand_chip; | 217 | chip = &gpiomtd->nand_chip; |
220 | 218 | ||