* [PATCH] phy: stm32: fix using plain integer as NULL pointer in stm32_usbphyc_probe
@ 2020-01-12 17:28 Yangtao Li
0 siblings, 0 replies; only message in thread
From: Yangtao Li @ 2020-01-12 17:28 UTC (permalink / raw)
To: kishon, mcoquelin.stm32, alexandre.torgue, p.zabel,
yamada.masahiro, gregkh
Cc: Yangtao Li, linux-kernel, linux-arm-kernel, linux-stm32
The parameter of devm_reset_control_get should be a pointer, so fix it.
Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
---
drivers/phy/st/phy-stm32-usbphyc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/phy/st/phy-stm32-usbphyc.c b/drivers/phy/st/phy-stm32-usbphyc.c
index 56bdea4b0bd9..8cf24c330f5e 100644
--- a/drivers/phy/st/phy-stm32-usbphyc.c
+++ b/drivers/phy/st/phy-stm32-usbphyc.c
@@ -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);
--
2.17.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-12 17:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-12 17:28 [PATCH] phy: stm32: fix using plain integer as NULL pointer in stm32_usbphyc_probe Yangtao Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).