Commit 0a16ee63 authored by Jingoo Han's avatar Jingoo Han Committed by Chanwoo Choi

extcon: Remove unnecessary OOM messages

The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message. The following
checkpatch warning is also removed.

  WARNING: Possible unnecessary 'out of memory' message
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
[Acked by Charles Keepax for arizona part]
Acked-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 6b18aa18
...@@ -1117,10 +1117,8 @@ static int arizona_extcon_probe(struct platform_device *pdev) ...@@ -1117,10 +1117,8 @@ static int arizona_extcon_probe(struct platform_device *pdev)
return -EPROBE_DEFER; return -EPROBE_DEFER;
info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL); info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
if (!info) { if (!info)
dev_err(&pdev->dev, "Failed to allocate memory\n");
return -ENOMEM; return -ENOMEM;
}
info->micvdd = devm_regulator_get(arizona->dev, "MICVDD"); info->micvdd = devm_regulator_get(arizona->dev, "MICVDD");
if (IS_ERR(info->micvdd)) { if (IS_ERR(info->micvdd)) {
......
...@@ -692,10 +692,9 @@ static int max14577_muic_probe(struct platform_device *pdev) ...@@ -692,10 +692,9 @@ static int max14577_muic_probe(struct platform_device *pdev)
u8 id; u8 id;
info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL); info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
if (!info) { if (!info)
dev_err(&pdev->dev, "failed to allocate memory\n");
return -ENOMEM; return -ENOMEM;
}
info->dev = &pdev->dev; info->dev = &pdev->dev;
info->max14577 = max14577; info->max14577 = max14577;
......
...@@ -1099,10 +1099,9 @@ static int max77693_muic_probe(struct platform_device *pdev) ...@@ -1099,10 +1099,9 @@ static int max77693_muic_probe(struct platform_device *pdev)
info = devm_kzalloc(&pdev->dev, sizeof(struct max77693_muic_info), info = devm_kzalloc(&pdev->dev, sizeof(struct max77693_muic_info),
GFP_KERNEL); GFP_KERNEL);
if (!info) { if (!info)
dev_err(&pdev->dev, "failed to allocate memory\n");
return -ENOMEM; return -ENOMEM;
}
info->dev = &pdev->dev; info->dev = &pdev->dev;
info->max77693 = max77693; info->max77693 = max77693;
if (info->max77693->regmap_muic) { if (info->max77693->regmap_muic) {
......
...@@ -661,10 +661,8 @@ static int max8997_muic_probe(struct platform_device *pdev) ...@@ -661,10 +661,8 @@ static int max8997_muic_probe(struct platform_device *pdev)
info = devm_kzalloc(&pdev->dev, sizeof(struct max8997_muic_info), info = devm_kzalloc(&pdev->dev, sizeof(struct max8997_muic_info),
GFP_KERNEL); GFP_KERNEL);
if (!info) { if (!info)
dev_err(&pdev->dev, "failed to allocate memory\n");
return -ENOMEM; return -ENOMEM;
}
info->dev = &pdev->dev; info->dev = &pdev->dev;
info->muic = max8997->muic; info->muic = max8997->muic;
......
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