OSDN Git Service

usb: ohci-ep93xx: tidy up driver (*probe) and (*remove)
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 1 Jul 2013 22:53:02 +0000 (15:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2013 20:54:29 +0000 (13:54 -0700)
commitaf3f233fd27b6a59cd6ea46a7dc048fff3ef2740
tree16a026edba63a96f69b26864abd8e857f70025ca
parent09ae8e7ead08e403413ceb4ba0f47eb324d03995
usb: ohci-ep93xx: tidy up driver (*probe) and (*remove)

Merge the usb_hcd_ep93xx_probe() into ohci_hcd_ep93xx_drv_probe() and
the usb_hcd_ep93xx_remove() into ohci_hcd_ep93xx_drv_remove(). As Alan
Stern pointed out, there is no reason for them to be separate.

Also, as Alan Stern suggested, eliminate the ep93xx_start_hc() and
ep93xx_stop_hc() routines and simply call clk_enable() and clk_disable()
directly. The extra level of redirection does not add any clarity.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Cc: Lennert Buytenhek <kernel@wantstofly.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-ep93xx.c