]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
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>
Thu, 19 Jun 2025 09:11:25 +0000 (11:11 +0200)
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>
drivers/usb/host/xhci-plat.c

index 6dab142e72789be74d9f54226687122367e3517b..49eb874b1d81d1f7c9cf56efedebebcc45aee5a4 100644 (file)
@@ -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;