diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-12-25 22:22:37 -0500 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-07 13:07:02 -0500 |
commit | b5d306c0349020a89322514ec010a9bf70d00b9b (patch) | |
tree | 36704400d433d31b56b3aeb61f3fd8a0f41365cc /drivers/mtd | |
parent | ad745810070e013f8f66744dc31ab7c202881dec (diff) |
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: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/sh_flctl.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c index 1940bd127d2d..d72783dd7b96 100644 --- a/drivers/mtd/nand/sh_flctl.c +++ b/drivers/mtd/nand/sh_flctl.c | |||
@@ -1058,10 +1058,8 @@ static struct sh_flctl_platform_data *flctl_parse_dt(struct device *dev) | |||
1058 | 1058 | ||
1059 | pdata = devm_kzalloc(dev, sizeof(struct sh_flctl_platform_data), | 1059 | pdata = devm_kzalloc(dev, sizeof(struct sh_flctl_platform_data), |
1060 | GFP_KERNEL); | 1060 | GFP_KERNEL); |
1061 | if (!pdata) { | 1061 | if (!pdata) |
1062 | dev_err(dev, "%s: failed to allocate config data\n", __func__); | ||
1063 | return NULL; | 1062 | return NULL; |
1064 | } | ||
1065 | 1063 | ||
1066 | /* set SoC specific options */ | 1064 | /* set SoC specific options */ |
1067 | pdata->flcmncr_val = config->flcmncr_val; | 1065 | pdata->flcmncr_val = config->flcmncr_val; |
@@ -1092,10 +1090,8 @@ static int flctl_probe(struct platform_device *pdev) | |||
1092 | struct mtd_part_parser_data ppdata = {}; | 1090 | struct mtd_part_parser_data ppdata = {}; |
1093 | 1091 | ||
1094 | flctl = devm_kzalloc(&pdev->dev, sizeof(struct sh_flctl), GFP_KERNEL); | 1092 | flctl = devm_kzalloc(&pdev->dev, sizeof(struct sh_flctl), GFP_KERNEL); |
1095 | if (!flctl) { | 1093 | if (!flctl) |
1096 | dev_err(&pdev->dev, "failed to allocate driver data\n"); | ||
1097 | return -ENOMEM; | 1094 | return -ENOMEM; |
1098 | } | ||
1099 | 1095 | ||
1100 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 1096 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
1101 | flctl->reg = devm_ioremap_resource(&pdev->dev, res); | 1097 | flctl->reg = devm_ioremap_resource(&pdev->dev, res); |