diff mbox series

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

Message ID 20250617204500.346984-1-eeodqql09@gmail.com
State New
Headers show
Series usb: host: xhci-plat: fix incorrect type for of_match variable in xhci_plat_probe() | expand

Commit Message

pip-izony June 17, 2025, 8:45 p.m. UTC
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 *`.

Signed-off-by: pip-izony <eeodqql09@gmail.com>
---
 drivers/usb/host/xhci-plat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index 6dab142e7278..49eb874b1d81 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -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;