diff options
author | Petr Mladek <pmladek@suse.cz> | 2014-09-19 17:32:19 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-23 22:31:11 -0700 |
commit | 5d14f323834eeb0cd428bcec4a9cd8d8839467fb (patch) | |
tree | 3ba33ad527e7d931635594a7b6727e4888415bc2 /include/linux/phy/omap_control_phy.h | |
parent | 3512e7bfea6a459cad84712a021d856bd78cd7e4 (diff) |
usb: hub: keep hub->dev reference all the time when struct usb_hub lives
This is just a small optimization of the fix from the commit c605f3cdff53a743f6
("usb: hub: take hub->hdev reference when processing from eventlist).
We do not need to take the reference for each event. Instead we could get it
when struct usb_hub is allocated and put it when it is released. By other words,
we could handle it the same way as the reference for hub->intfdev.
The motivation is that it will make the life easier when switching from khubd
kthread to a workqueue.
Suggested-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Petr Mladek <pmladek@suse.cz>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/phy/omap_control_phy.h')
0 files changed, 0 insertions, 0 deletions