Commit 9da22206 authored by Peter Chen's avatar Peter Chen Committed by Felipe Balbi

usb: phy: phy-msm-usb: delete unnecessary 'out of memory' messages

The memory subsystem has already had similar message for it.
Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent c62fe556
...@@ -1505,10 +1505,8 @@ static int msm_otg_read_dt(struct platform_device *pdev, struct msm_otg *motg) ...@@ -1505,10 +1505,8 @@ static int msm_otg_read_dt(struct platform_device *pdev, struct msm_otg *motg)
} }
pdata->phy_init_seq = devm_kzalloc(&pdev->dev, len, GFP_KERNEL); pdata->phy_init_seq = devm_kzalloc(&pdev->dev, len, GFP_KERNEL);
if (!pdata->phy_init_seq) { if (!pdata->phy_init_seq)
dev_warn(&pdev->dev, "No space for PHY init sequence\n");
return 0; return 0;
}
ret = of_property_read_u32_array(node, "qcom,phy-init-sequence", ret = of_property_read_u32_array(node, "qcom,phy-init-sequence",
pdata->phy_init_seq, words); pdata->phy_init_seq, words);
...@@ -1530,10 +1528,8 @@ static int msm_otg_probe(struct platform_device *pdev) ...@@ -1530,10 +1528,8 @@ static int msm_otg_probe(struct platform_device *pdev)
void __iomem *phy_select; void __iomem *phy_select;
motg = devm_kzalloc(&pdev->dev, sizeof(struct msm_otg), GFP_KERNEL); motg = devm_kzalloc(&pdev->dev, sizeof(struct msm_otg), GFP_KERNEL);
if (!motg) { if (!motg)
dev_err(&pdev->dev, "unable to allocate msm_otg\n");
return -ENOMEM; return -ENOMEM;
}
pdata = dev_get_platdata(&pdev->dev); pdata = dev_get_platdata(&pdev->dev);
if (!pdata) { if (!pdata) {
...@@ -1546,10 +1542,8 @@ static int msm_otg_probe(struct platform_device *pdev) ...@@ -1546,10 +1542,8 @@ static int msm_otg_probe(struct platform_device *pdev)
motg->phy.otg = devm_kzalloc(&pdev->dev, sizeof(struct usb_otg), motg->phy.otg = devm_kzalloc(&pdev->dev, sizeof(struct usb_otg),
GFP_KERNEL); GFP_KERNEL);
if (!motg->phy.otg) { if (!motg->phy.otg)
dev_err(&pdev->dev, "unable to allocate msm_otg\n");
return -ENOMEM; return -ENOMEM;
}
phy = &motg->phy; phy = &motg->phy;
phy->dev = &pdev->dev; phy->dev = &pdev->dev;
......
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