diff options
author | Peter Chen <peter.chen@freescale.com> | 2014-10-14 03:56:17 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-03 11:01:06 -0500 |
commit | 9da22206c2dad28f4a1dd8c6d9f66030524965b2 (patch) | |
tree | 4663a7dd258d90a18a0d91a0419964bc8fb5a815 /drivers/usb/phy | |
parent | c62fe55648702c5e736861a4238a58b92072202b (diff) |
usb: phy: phy-msm-usb: delete unnecessary 'out of memory' messages
The memory subsystem has already had similar message for it.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy')
-rw-r--r-- | drivers/usb/phy/phy-msm-usb.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/usb/phy/phy-msm-usb.c b/drivers/usb/phy/phy-msm-usb.c index 7843ef7dd0ff..471e69dbcca0 100644 --- a/drivers/usb/phy/phy-msm-usb.c +++ b/drivers/usb/phy/phy-msm-usb.c | |||
@@ -1505,10 +1505,8 @@ static int msm_otg_read_dt(struct platform_device *pdev, struct msm_otg *motg) | |||
1505 | } | 1505 | } |
1506 | 1506 | ||
1507 | pdata->phy_init_seq = devm_kzalloc(&pdev->dev, len, GFP_KERNEL); | 1507 | pdata->phy_init_seq = devm_kzalloc(&pdev->dev, len, GFP_KERNEL); |
1508 | if (!pdata->phy_init_seq) { | 1508 | if (!pdata->phy_init_seq) |
1509 | dev_warn(&pdev->dev, "No space for PHY init sequence\n"); | ||
1510 | return 0; | 1509 | return 0; |
1511 | } | ||
1512 | 1510 | ||
1513 | ret = of_property_read_u32_array(node, "qcom,phy-init-sequence", | 1511 | ret = of_property_read_u32_array(node, "qcom,phy-init-sequence", |
1514 | pdata->phy_init_seq, words); | 1512 | pdata->phy_init_seq, words); |
@@ -1530,10 +1528,8 @@ static int msm_otg_probe(struct platform_device *pdev) | |||
1530 | void __iomem *phy_select; | 1528 | void __iomem *phy_select; |
1531 | 1529 | ||
1532 | motg = devm_kzalloc(&pdev->dev, sizeof(struct msm_otg), GFP_KERNEL); | 1530 | motg = devm_kzalloc(&pdev->dev, sizeof(struct msm_otg), GFP_KERNEL); |
1533 | if (!motg) { | 1531 | if (!motg) |
1534 | dev_err(&pdev->dev, "unable to allocate msm_otg\n"); | ||
1535 | return -ENOMEM; | 1532 | return -ENOMEM; |
1536 | } | ||
1537 | 1533 | ||
1538 | pdata = dev_get_platdata(&pdev->dev); | 1534 | pdata = dev_get_platdata(&pdev->dev); |
1539 | if (!pdata) { | 1535 | if (!pdata) { |
@@ -1546,10 +1542,8 @@ static int msm_otg_probe(struct platform_device *pdev) | |||
1546 | 1542 | ||
1547 | motg->phy.otg = devm_kzalloc(&pdev->dev, sizeof(struct usb_otg), | 1543 | motg->phy.otg = devm_kzalloc(&pdev->dev, sizeof(struct usb_otg), |
1548 | GFP_KERNEL); | 1544 | GFP_KERNEL); |
1549 | if (!motg->phy.otg) { | 1545 | if (!motg->phy.otg) |
1550 | dev_err(&pdev->dev, "unable to allocate msm_otg\n"); | ||
1551 | return -ENOMEM; | 1546 | return -ENOMEM; |
1552 | } | ||
1553 | 1547 | ||
1554 | phy = &motg->phy; | 1548 | phy = &motg->phy; |
1555 | phy->dev = &pdev->dev; | 1549 | phy->dev = &pdev->dev; |