diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-12-26 07:00:16 +0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-03 23:22:28 +0400 |
commit | 9e3677a8134cb49fcc3e64974500c22f0ad7bb55 (patch) | |
tree | b014ee9bb3aae4b7648175a1a31c161e00277e94 /drivers/mtd/nand | |
parent | 8f91fb681ec177fc2c2329c222a2ff4970381a23 (diff) | |
download | linux-9e3677a8134cb49fcc3e64974500c22f0ad7bb55.tar.xz |
mtd: atmel_nand: 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>
Acked-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/atmel_nand.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 59f08c44abdb..e633c4454bad 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c @@ -1961,10 +1961,8 @@ static int atmel_nand_probe(struct platform_device *pdev) /* Allocate memory for the device structure (and zero it) */ host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL); - if (!host) { - printk(KERN_ERR "atmel_nand: failed to allocate device structure.\n"); + if (!host) return -ENOMEM; - } res = platform_driver_register(&atmel_nand_nfc_driver); if (res) |