瀏覽代碼

phy: berlin-usb: don't set device's driver_data

After commit 739ae3452d0e ("phy: berlin-usb: Set drvdata for phy and
use it"), we get the address of priv by phy_get_drvdata(), so there's
no need to set device's driver_data any more. This patch removes the
call of platform_set_drvdata().

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Jisheng Zhang 9 年之前
父節點
當前提交
c3ab642f2f
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/phy/phy-berlin-usb.c

+ 0 - 1
drivers/phy/phy-berlin-usb.c

@@ -193,7 +193,6 @@ static int phy_berlin_usb_probe(struct platform_device *pdev)
 		return PTR_ERR(phy);
 	}
 
-	platform_set_drvdata(pdev, priv);
 	phy_set_drvdata(phy, priv);
 
 	phy_provider =