|
@@ -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) {
|
|
|
|
- dev_err(&pdev->dev, "Failed to allocate memory\n");
|
|
|
|
|
|
+ if (!info)
|
|
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)) {
|