Commit d9e496a9 authored by Seungjin Bae's avatar Seungjin Bae Committed by Greg Kroah-Hartman
Browse files

usb: host: xhci-plat: fix incorrect type for of_match variable in xhci_plat_probe()



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: 16b7e0cc ("USB: xhci-plat: fix legacy PHY double init")
Signed-off-by: default avatarSeungjin Bae <eeodqql09@gmail.com>
Link: https://lore.kernel.org/r/20250619055746.176112-2-eeodqql09@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e04c78d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -152,7 +152,7 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s
	int			ret;
	int			irq;
	struct xhci_plat_priv	*priv = NULL;
	bool			of_match;
	const struct of_device_id *of_match;

	if (usb_disabled())
		return -ENODEV;