summaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2014-10-14 15:56:14 +0800
committerFelipe Balbi <balbi@ti.com>2014-11-03 10:01:05 -0600
commit9aabd03272c8dc0b91341da865ae742fe0ecb2c3 (patch)
tree378486dd5b5736dfba6a4602786ccaf5cd326658 /drivers/usb/phy
parent01ad32d5b5289b00d03a94dd9f6d975f1314a541 (diff)
downloadop-kernel-dev-9aabd03272c8dc0b91341da865ae742fe0ecb2c3.zip
op-kernel-dev-9aabd03272c8dc0b91341da865ae742fe0ecb2c3.tar.gz
usb: phy: phy-am335x-control: 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-am335x-control.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/phy/phy-am335x-control.c b/drivers/usb/phy/phy-am335x-control.c
index 35b6083..2e923c5 100644
--- a/drivers/usb/phy/phy-am335x-control.c
+++ b/drivers/usb/phy/phy-am335x-control.c
@@ -147,10 +147,8 @@ static int am335x_control_usb_probe(struct platform_device *pdev)
phy_ctrl = of_id->data;
ctrl_usb = devm_kzalloc(&pdev->dev, sizeof(*ctrl_usb), GFP_KERNEL);
- if (!ctrl_usb) {
- dev_err(&pdev->dev, "unable to alloc memory for control usb\n");
+ if (!ctrl_usb)
return -ENOMEM;
- }
ctrl_usb->dev = &pdev->dev;
OpenPOWER on IntegriCloud