summaryrefslogtreecommitdiffstats
path: root/drivers/phy/phy-berlin-usb.c
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@marvell.com>2015-12-04 14:57:01 +0100
committerKishon Vijay Abraham I <kishon@ti.com>2015-12-20 13:13:12 +0100
commitc3ab642f2f08349c41f7d837f224ce1e63b58197 (patch)
treef36c986c8b06344d322a62f4278c0946bad7443c /drivers/phy/phy-berlin-usb.c
parentphy: berlin-usb: remove non-necessary header files (diff)
downloadlinux-c3ab642f2f08349c41f7d837f224ce1e63b58197.tar.xz
linux-c3ab642f2f08349c41f7d837f224ce1e63b58197.zip
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>
Diffstat (limited to 'drivers/phy/phy-berlin-usb.c')
-rw-r--r--drivers/phy/phy-berlin-usb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/phy/phy-berlin-usb.c b/drivers/phy/phy-berlin-usb.c
index 7bbb47389fb0..2017751ede26 100644
--- a/drivers/phy/phy-berlin-usb.c
+++ b/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 =