aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/phy/phy-omap-control.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/phy/phy-omap-control.c')
-rw-r--r--drivers/phy/phy-omap-control.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/phy/phy-omap-control.c b/drivers/phy/phy-omap-control.c
index 9487bf112267..c96e8183a8ff 100644
--- a/drivers/phy/phy-omap-control.c
+++ b/drivers/phy/phy-omap-control.c
@@ -295,10 +295,8 @@ static int omap_control_phy_probe(struct platform_device *pdev)
295 295
296 control_phy = devm_kzalloc(&pdev->dev, sizeof(*control_phy), 296 control_phy = devm_kzalloc(&pdev->dev, sizeof(*control_phy),
297 GFP_KERNEL); 297 GFP_KERNEL);
298 if (!control_phy) { 298 if (!control_phy)
299 dev_err(&pdev->dev, "unable to alloc memory for control phy\n");
300 return -ENOMEM; 299 return -ENOMEM;
301 }
302 300
303 control_phy->dev = &pdev->dev; 301 control_phy->dev = &pdev->dev;
304 control_phy->type = *(enum omap_control_phy_type *)of_id->data; 302 control_phy->type = *(enum omap_control_phy_type *)of_id->data;
@@ -347,7 +345,6 @@ static struct platform_driver omap_control_phy_driver = {
347 .probe = omap_control_phy_probe, 345 .probe = omap_control_phy_probe,
348 .driver = { 346 .driver = {
349 .name = "omap-control-phy", 347 .name = "omap-control-phy",
350 .owner = THIS_MODULE,
351 .of_match_table = of_match_ptr(omap_control_phy_id_table), 348 .of_match_table = of_match_ptr(omap_control_phy_id_table),
352 }, 349 },
353}; 350};