aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb/usb_phy_generic.h
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2014-04-16 16:16:33 -0500
committerFelipe Balbi <balbi@ti.com>2014-04-21 14:07:25 -0500
commit2f36ff6915c6c00df8b9962d9c6c7992befcf8ce (patch)
tree86659a77a445a849073032e9b74fdfad828d147c /include/linux/usb/usb_phy_generic.h
parentusb: musb: move usb_phy_generic_{un,}register calls to probe()/remove() (diff)
downloadlinux-dev-2f36ff6915c6c00df8b9962d9c6c7992befcf8ce.tar.xz
linux-dev-2f36ff6915c6c00df8b9962d9c6c7992befcf8ce.zip
usb: phy: generic: allow multiples calls to usb_phy_generic_register()
it's now very easy to return a platform_device pointer and have the caller pass it as argument when calling usb_phy_generic_unregister(). Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/usb/usb_phy_generic.h')
-rw-r--r--include/linux/usb/usb_phy_generic.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/usb/usb_phy_generic.h b/include/linux/usb/usb_phy_generic.h
index c00176d48625..8346bcc50c2f 100644
--- a/include/linux/usb/usb_phy_generic.h
+++ b/include/linux/usb/usb_phy_generic.h
@@ -15,14 +15,15 @@ struct usb_phy_generic_platform_data {
#if defined(CONFIG_NOP_USB_XCEIV) || (defined(CONFIG_NOP_USB_XCEIV_MODULE) && defined(MODULE))
/* sometimes transceivers are accessed only through e.g. ULPI */
-extern void usb_phy_generic_register(void);
-extern void usb_phy_generic_unregister(void);
+extern struct platform_device *usb_phy_generic_register(void);
+extern void usb_phy_generic_unregister(struct platform_device *);
#else
-static inline void usb_phy_generic_register(void)
+static inline struct platform_device *usb_phy_generic_register(void)
{
+ return NULL;
}
-static inline void usb_phy_generic_unregister(void)
+static inline void usb_phy_generic_unregister(struct platform_device *pdev)
{
}
#endif