diff options
| author | Felipe Balbi <balbi@ti.com> | 2014-04-16 17:16:33 -0400 |
|---|---|---|
| committer | Felipe Balbi <balbi@ti.com> | 2014-04-21 15:07:25 -0400 |
| commit | 2f36ff6915c6c00df8b9962d9c6c7992befcf8ce (patch) | |
| tree | 86659a77a445a849073032e9b74fdfad828d147c /include/linux/usb | |
| parent | e741e637a85a802a93125dca1ecf324bc414101b (diff) | |
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 { | |||
| 15 | 15 | ||
| 16 | #if defined(CONFIG_NOP_USB_XCEIV) || (defined(CONFIG_NOP_USB_XCEIV_MODULE) && defined(MODULE)) | 16 | #if defined(CONFIG_NOP_USB_XCEIV) || (defined(CONFIG_NOP_USB_XCEIV_MODULE) && defined(MODULE)) |
| 17 | /* sometimes transceivers are accessed only through e.g. ULPI */ | 17 | /* sometimes transceivers are accessed only through e.g. ULPI */ |
| 18 | extern void usb_phy_generic_register(void); | 18 | extern struct platform_device *usb_phy_generic_register(void); |
| 19 | extern void usb_phy_generic_unregister(void); | 19 | extern void usb_phy_generic_unregister(struct platform_device *); |
| 20 | #else | 20 | #else |
| 21 | static inline void usb_phy_generic_register(void) | 21 | static inline struct platform_device *usb_phy_generic_register(void) |
| 22 | { | 22 | { |
| 23 | return NULL; | ||
| 23 | } | 24 | } |
| 24 | 25 | ||
| 25 | static inline void usb_phy_generic_unregister(void) | 26 | static inline void usb_phy_generic_unregister(struct platform_device *pdev) |
| 26 | { | 27 | { |
| 27 | } | 28 | } |
| 28 | #endif | 29 | #endif |
