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

mtd: sh_flctl: 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>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent ad745810
...@@ -1058,10 +1058,8 @@ static struct sh_flctl_platform_data *flctl_parse_dt(struct device *dev) ...@@ -1058,10 +1058,8 @@ static struct sh_flctl_platform_data *flctl_parse_dt(struct device *dev)
pdata = devm_kzalloc(dev, sizeof(struct sh_flctl_platform_data), pdata = devm_kzalloc(dev, sizeof(struct sh_flctl_platform_data),
GFP_KERNEL); GFP_KERNEL);
if (!pdata) { if (!pdata)
dev_err(dev, "%s: failed to allocate config data\n", __func__);
return NULL; return NULL;
}
/* set SoC specific options */ /* set SoC specific options */
pdata->flcmncr_val = config->flcmncr_val; pdata->flcmncr_val = config->flcmncr_val;
...@@ -1092,10 +1090,8 @@ static int flctl_probe(struct platform_device *pdev) ...@@ -1092,10 +1090,8 @@ static int flctl_probe(struct platform_device *pdev)
struct mtd_part_parser_data ppdata = {}; struct mtd_part_parser_data ppdata = {};
flctl = devm_kzalloc(&pdev->dev, sizeof(struct sh_flctl), GFP_KERNEL); flctl = devm_kzalloc(&pdev->dev, sizeof(struct sh_flctl), GFP_KERNEL);
if (!flctl) { if (!flctl)
dev_err(&pdev->dev, "failed to allocate driver data\n");
return -ENOMEM; return -ENOMEM;
}
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
flctl->reg = devm_ioremap_resource(&pdev->dev, res); flctl->reg = 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