From: Yangtao Li <tiny.windzz@gmail•com>
To: kishon@ti•com, mcoquelin.stm32@gmail•com,
alexandre.torgue@st•com, p.zabel@pengutronix•de,
yamada.masahiro@socionext•com, gregkh@linuxfoundation•org
Cc: Yangtao Li <tiny.windzz@gmail•com>,
linux-kernel@vger•kernel.org,
linux-arm-kernel@lists•infradead.org,
linux-stm32@st-md-mailman•stormreply.com
Subject: [PATCH] phy: stm32: fix using plain integer as NULL pointer in stm32_usbphyc_probe
Date: Sun, 12 Jan 2020 17:28:28 +0000 [thread overview]
Message-ID: <20200112172828.23252-1-tiny.windzz@gmail.com> (raw)
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
reply other threads:[~2020-01-12 17:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200112172828.23252-1-tiny.windzz@gmail.com \
--to=tiny.windzz@gmail$(echo .)com \
--cc=alexandre.torgue@st$(echo .)com \
--cc=gregkh@linuxfoundation$(echo .)org \
--cc=kishon@ti$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-stm32@st-md-mailman$(echo .)stormreply.com \
--cc=mcoquelin.stm32@gmail$(echo .)com \
--cc=p.zabel@pengutronix$(echo .)de \
--cc=yamada.masahiro@socionext$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox