diff options
author | Felipe Balbi <balbi@ti.com> | 2014-04-17 01:16:33 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-04-21 23:07:25 +0400 |
commit | 2f36ff6915c6c00df8b9962d9c6c7992befcf8ce (patch) | |
tree | 86659a77a445a849073032e9b74fdfad828d147c /include/linux/usb | |
parent | e741e637a85a802a93125dca1ecf324bc414101b (diff) | |
download | linux-2f36ff6915c6c00df8b9962d9c6c7992befcf8ce.tar.xz |
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')
-rw-r--r-- | include/linux/usb/usb_phy_generic.h | 9 |
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 |