]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/usb/dwc3/dwc3-omap.c
extcon: Move OF helper function to extcon core and change function name
[mirror_ubuntu-jammy-kernel.git] / drivers / usb / dwc3 / dwc3-omap.c
index b269dbd47fc41edef682380bcd3637a20371b9ee..b1d7ee6e40b7a6e3ac69f60a89dff571012bfe1c 100644 (file)
@@ -29,7 +29,6 @@
 #include <linux/of.h>
 #include <linux/of_platform.h>
 #include <linux/extcon.h>
-#include <linux/extcon/of_extcon.h>
 #include <linux/regulator/consumer.h>
 
 #include <linux/usb/otg.h>
@@ -522,7 +521,7 @@ static int dwc3_omap_probe(struct platform_device *pdev)
        dwc3_omap_enable_irqs(omap);
 
        if (of_property_read_bool(node, "extcon")) {
-               edev = of_extcon_get_extcon_dev(dev, 0);
+               edev = extcon_get_edev_by_phandle(dev, 0);
                if (IS_ERR(edev)) {
                        dev_vdbg(dev, "couldn't get extcon device\n");
                        ret = -EPROBE_DEFER;