Commit d9a21ae8 authored by Jingoo Han's avatar Jingoo Han Committed by Brian Norris

mtd: fsmc_nand: Remove unnecessary OOM messages

The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 00669231
...@@ -889,10 +889,8 @@ static int fsmc_nand_probe_config_dt(struct platform_device *pdev, ...@@ -889,10 +889,8 @@ static int fsmc_nand_probe_config_dt(struct platform_device *pdev,
pdata->nand_timings = devm_kzalloc(&pdev->dev, pdata->nand_timings = devm_kzalloc(&pdev->dev,
sizeof(*pdata->nand_timings), GFP_KERNEL); sizeof(*pdata->nand_timings), GFP_KERNEL);
if (!pdata->nand_timings) { if (!pdata->nand_timings)
dev_err(&pdev->dev, "no memory for nand_timing\n");
return -ENOMEM; return -ENOMEM;
}
of_property_read_u8_array(np, "timings", (u8 *)pdata->nand_timings, of_property_read_u8_array(np, "timings", (u8 *)pdata->nand_timings,
sizeof(*pdata->nand_timings)); sizeof(*pdata->nand_timings));
...@@ -950,10 +948,8 @@ static int __init fsmc_nand_probe(struct platform_device *pdev) ...@@ -950,10 +948,8 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
/* Allocate memory for the device structure (and zero it) */ /* Allocate memory for the device structure (and zero it) */
host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL); host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL);
if (!host) { if (!host)
dev_err(&pdev->dev, "failed to allocate device structure\n");
return -ENOMEM; return -ENOMEM;
}
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "nand_data"); res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "nand_data");
host->data_va = devm_ioremap_resource(&pdev->dev, res); host->data_va = devm_ioremap_resource(&pdev->dev, res);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment