diff options
author | Felipe Balbi <balbi@ti.com> | 2014-04-16 16:16:33 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-04-21 14:07:25 -0500 |
commit | 2f36ff6915c6c00df8b9962d9c6c7992befcf8ce (patch) | |
tree | 86659a77a445a849073032e9b74fdfad828d147c /include/linux/usb/usb_phy_generic.h | |
parent | e741e637a85a802a93125dca1ecf324bc414101b (diff) | |
download | op-kernel-dev-2f36ff6915c6c00df8b9962d9c6c7992befcf8ce.zip op-kernel-dev-2f36ff6915c6c00df8b9962d9c6c7992befcf8ce.tar.gz |
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.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 c00176d..8346bcc 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 |