aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-12-25 22:17:42 -0500
committerBrian Norris <computersforpeace@gmail.com>2014-01-07 13:06:57 -0500
commit24e9971d3d938f49ea03e0c76649a62894175b3f (patch)
tree2b045b246f6d5a8d97c86064c474dc14b7e4d921
parentd9a21ae8e5f3fe2d940f54e45386b35b98cbcc35 (diff)
mtd: nand-gpio: Remove unnecessary OOM messages
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-rw-r--r--drivers/mtd/nand/gpio.c4
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