diff options
Diffstat (limited to 'drivers/phy/phy-omap-usb2.c')
-rw-r--r-- | drivers/phy/phy-omap-usb2.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/phy/phy-omap-usb2.c b/drivers/phy/phy-omap-usb2.c index 93d78359246c..8c842980834a 100644 --- a/drivers/phy/phy-omap-usb2.c +++ b/drivers/phy/phy-omap-usb2.c | |||
@@ -212,16 +212,12 @@ static int omap_usb2_probe(struct platform_device *pdev) | |||
212 | phy_data = (struct usb_phy_data *)of_id->data; | 212 | phy_data = (struct usb_phy_data *)of_id->data; |
213 | 213 | ||
214 | phy = devm_kzalloc(&pdev->dev, sizeof(*phy), GFP_KERNEL); | 214 | phy = devm_kzalloc(&pdev->dev, sizeof(*phy), GFP_KERNEL); |
215 | if (!phy) { | 215 | if (!phy) |
216 | dev_err(&pdev->dev, "unable to allocate memory for USB2 PHY\n"); | ||
217 | return -ENOMEM; | 216 | return -ENOMEM; |
218 | } | ||
219 | 217 | ||
220 | otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL); | 218 | otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL); |
221 | if (!otg) { | 219 | if (!otg) |
222 | dev_err(&pdev->dev, "unable to allocate memory for USB OTG\n"); | ||
223 | return -ENOMEM; | 220 | return -ENOMEM; |
224 | } | ||
225 | 221 | ||
226 | phy->dev = &pdev->dev; | 222 | phy->dev = &pdev->dev; |
227 | 223 | ||
@@ -382,7 +378,6 @@ static struct platform_driver omap_usb2_driver = { | |||
382 | .remove = omap_usb2_remove, | 378 | .remove = omap_usb2_remove, |
383 | .driver = { | 379 | .driver = { |
384 | .name = "omap-usb2", | 380 | .name = "omap-usb2", |
385 | .owner = THIS_MODULE, | ||
386 | .pm = DEV_PM_OPS, | 381 | .pm = DEV_PM_OPS, |
387 | .of_match_table = of_match_ptr(omap_usb2_id_table), | 382 | .of_match_table = of_match_ptr(omap_usb2_id_table), |
388 | }, | 383 | }, |