]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
usb: ohci-ep93xx: use devm_clk_get()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 1 Jul 2013 22:52:59 +0000 (15:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2013 20:54:29 +0000 (13:54 -0700)
commit09ae8e7ead08e403413ceb4ba0f47eb324d03995
tree85e0538848013d257fa3ee4df2d1a494f477fdf2
parent8fb35f2d3189f27fe51fb485e9b9751b202d585b
usb: ohci-ep93xx: use devm_clk_get()

Use devm_clk_get() to make the code a bit cleaner and simpler.

This also fixes a bug where a clk_put() is not done if usb_add_hcd()
fails.

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