]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: host: xhci-plat: fix incorrect type for of_match variable in xhci_plat_probe()
authorSeungjin Bae <eeodqql09@gmail.com>
Thu, 19 Jun 2025 05:57:47 +0000 (01:57 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:04:53 +0000 (12:04 +0200)
commit9b49f02bfc67c18d9afdf9b6d7d098f5dcd84848
tree260053e171f9007ad2158e5c31816eadf510f5e9
parent7cd4940a8fe7e3853dbfff9e7a4c8888c51ba900
usb: host: xhci-plat: fix incorrect type for of_match variable in xhci_plat_probe()

[ Upstream commit d9e496a9fb4021a9e6b11e7ba221a41a2597ac27 ]

The variable `of_match` was incorrectly declared as a `bool`.
It is assigned the return value of of_match_device(), which is a pointer of
type `const struct of_device_id *`.

Fixes: 16b7e0cccb243 ("USB: xhci-plat: fix legacy PHY double init")
Signed-off-by: Seungjin Bae <eeodqql09@gmail.com>
Link: https://lore.kernel.org/r/20250619055746.176112-2-eeodqql09@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/host/xhci-plat.c