Skip to contentSkip to conversation

phy: fsl-imx8mq-usb: set platform driver data

PATCH Applied Xu Yang 3 participants 3 messages Jan 20 – Jan 21

Subsystems (2)
lore
Share & tools
lore

Xu Yang

author
#0 lore raw

PATCH 1/1 phy: fsl-imx8mq-usb: set platform driver data

Add missing platform_set_drvdata() as the data will be used in remove().

Fixes b58f0f86fd61 ("phy: fsl-imx8mq-usb: add tca function driver for imx95")
---
 drivers/phy/freescale/phy-fsl-imx8mq-usb.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/phy/freescale/phy-fsl-imx8mq-usb.c +2 -0
index e9c113edd470..028c4c9dea40 100644
@@ -778,6 +778,8 @@ static int imx8mq_usb_phy_probe(struct platform_device *pdev)
 	if (!imx_phy)
 		return -ENOMEM;
 
+	platform_set_drvdata(pdev, imx_phy);
+
 	imx_phy->clk = devm_clk_get(dev, "phy");
 	if (IS_ERR(imx_phy->clk)) {
 		dev_err(dev, "failed to get imx8mq usb phy clock\n");
Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Xu Yang

Add missing platform_set_drvdata() as the data will be used in remove().

Fixes b58f0f86fd61 ("phy: fsl-imx8mq-usb: add tca function driver for imx95")

---

Quoted 19 lines
 drivers/phy/freescale/phy-fsl-imx8mq-usb.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/phy/freescale/phy-fsl-imx8mq-usb.c +2 -1
index e9c113edd470..028c4c9dea40 100644
@@ -778,6 +778,8 @@ static int imx8mq_usb_phy_probe(struct platform_device *pdev)
 	if (!imx_phy)
 		return -ENOMEM;
 
+	platform_set_drvdata(pdev, imx_phy);
+
 	imx_phy->clk = devm_clk_get(dev, "phy");
 	if (IS_ERR(imx_phy->clk)) {
 		dev_err(dev, "failed to get imx8mq usb phy clock\n");
--

2.34.1

maintainer Applied
#2 lore raw
In reply to Xu Yang
Quoted 3 lines · Xu Yang

Add missing platform_set_drvdata() as the data will be used in remove().

Applied, thanks!

[1/1] phy: fsl-imx8mq-usb: set platform driver data

      commit: debf8326a435ac746f48173e4742a574810f1ff4

Best regards,

Signature · 1 line
~Vinod