Skip to contentSkip to conversation

phy: stm32: fix using plain integer as NULL pointer in stm32_usbphyc_probe

PATCH New Yangtao Li 1 participant 1 message Jan 12, 2020

Subsystems (2)
lore
Share & tools
lore

Yangtao Li

author
#0 lore raw

PATCH 1/1 phy: stm32: fix using plain integer as NULL pointer in stm32_usbphyc_probe

The parameter of devm_reset_control_get should be a pointer, so fix it.

---
 drivers/phy/st/phy-stm32-usbphyc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/st/phy-stm32-usbphyc.c +1 -1
index 56bdea4b0bd9..8cf24c330f5e 100644
@@ -340,7 +340,7 @@ static int stm32_usbphyc_probe(struct platform_device *pdev)
 		return ret;
 	}
 
-	usbphyc->rst = devm_reset_control_get(dev, 0);
+	usbphyc->rst = devm_reset_control_get(dev, NULL);
 	if (!IS_ERR(usbphyc->rst)) {
 		reset_control_assert(usbphyc->rst);
 		udelay(2);
Signature · 1 line
2.17.1