phy: stm32: use NULL instead of zero
authorVinod Koul <vkoul@kernel.org>
Wed, 8 Jul 2020 13:28:09 +0000 (18:58 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 13 Jul 2020 06:45:46 +0000 (12:15 +0530)
commit0ff35966d171ec99b118df666c1687cc86ba8d7e
tree8fc586a2e2214825c89aa4b23498bd76269affd0
parent0672fb0d422246725c3af0957cbdbedcc86008a1
phy: stm32: use NULL instead of zero

devm_clk_get() and devm_reset_control_get() expect a const char *id for
the last arg, but a value of zero was provided. This results in below
sparse warning:

drivers/phy/st/phy-stm32-usbphyc.c:330:42: warning: Using plain integer as NULL pointer
drivers/phy/st/phy-stm32-usbphyc.c:343:52: warning: Using plain integer as NULL pointer

Instead of zero, use NULL

Reviewed-by: Amelie Delaunay <amelie.delaunay@st.com>
Link: https://lore.kernel.org/r/20200708132809.265967-6-vkoul@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/st/phy-stm32-usbphyc.c