]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
usb: ulpi: Remove unused otg_ulpi_create
authorDr. David Alan Gilbert <linux@treblig.org>
Sun, 23 Feb 2025 16:06:02 +0000 (16:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Mar 2025 09:23:35 +0000 (10:23 +0100)
otg_ulpi_create() has been unused since 2022's
commit 8ca79aaad8be ("ARM: pxa: remove unused pxa3xx-ulpi")

Remove it.

The devm_ variant is still used.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://lore.kernel.org/r/20250223160602.91916-1-linux@treblig.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/phy/phy-ulpi.c
include/linux/usb/ulpi.h

index e683a37e3a7a21169bc3984144e861cfe81de1e2..4df63e67bb37de3a8183d9dfa4bb08628bcff674 100644 (file)
@@ -255,29 +255,6 @@ static void otg_ulpi_init(struct usb_phy *phy, struct usb_otg *otg,
        otg->set_vbus   = ulpi_set_vbus;
 }
 
-struct usb_phy *
-otg_ulpi_create(struct usb_phy_io_ops *ops,
-               unsigned int flags)
-{
-       struct usb_phy *phy;
-       struct usb_otg *otg;
-
-       phy = kzalloc(sizeof(*phy), GFP_KERNEL);
-       if (!phy)
-               return NULL;
-
-       otg = kzalloc(sizeof(*otg), GFP_KERNEL);
-       if (!otg) {
-               kfree(phy);
-               return NULL;
-       }
-
-       otg_ulpi_init(phy, otg, ops, flags);
-
-       return phy;
-}
-EXPORT_SYMBOL_GPL(otg_ulpi_create);
-
 struct usb_phy *
 devm_otg_ulpi_create(struct device *dev,
                     struct usb_phy_io_ops *ops,
index 5050f502c1edc2c88ab53909a96414ac0262ca0a..4b651065738af214bbf8ae1f821f630502a96f04 100644 (file)
 /*-------------------------------------------------------------------------*/
 
 #if IS_ENABLED(CONFIG_USB_ULPI)
-struct usb_phy *otg_ulpi_create(struct usb_phy_io_ops *ops,
-                                       unsigned int flags);
-
 struct usb_phy *devm_otg_ulpi_create(struct device *dev,
                                     struct usb_phy_io_ops *ops,
                                     unsigned int flags);
 #else
-static inline struct usb_phy *otg_ulpi_create(struct usb_phy_io_ops *ops,
-                                             unsigned int flags)
-{
-       return NULL;
-}
-
 static inline struct usb_phy *devm_otg_ulpi_create(struct device *dev,
                                                   struct usb_phy_io_ops *ops,
                                                   unsigned int flags)