]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: phy: twl6030: Fix incorrect type for ret
authorXichao Zhao <zhao.xichao@vivo.com>
Fri, 22 Aug 2025 09:22:24 +0000 (17:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Oct 2025 09:56:32 +0000 (11:56 +0200)
commit76e27075d71b85d6bb7ce7755e2e7e7b8b75a143
tree2857c8ed8f5d6fc7c74eb37e5abe23c5a4951c2d
parentac9f0bc2f1eacb4694e4a1cd6cd0eb232548594e
usb: phy: twl6030: Fix incorrect type for ret

[ Upstream commit b570b346ddd727c4b41743a6a2f49e7217c5317f ]

In the twl6030_usb_probe(), the variable ret is declared as
a u32 type. However, since ret may receive -ENODEV when accepting
the return value of omap_usb2_set_comparator().Therefore, its type
should be changed to int.

Fixes: 0e98de67bacba ("usb: otg: make twl6030_usb as a comparator driver to omap_usb2")
Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Link: https://lore.kernel.org/r/20250822092224.30645-1-zhao.xichao@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/phy/phy-twl6030-usb.c