usb: dwc2: remove early return on clock query
authorDinh Nguyen <dinguyen@opensource.altera.com>
Mon, 24 Nov 2014 17:02:11 +0000 (11:02 -0600)
committerFelipe Balbi <balbi@ti.com>
Tue, 25 Nov 2014 14:47:05 +0000 (08:47 -0600)
commitf415fbd17f0438913339fd043779f306ee3587b0
tree05a66357e4eadba4db162af6ef734f0284ca94ee
parentda9f3289c74f93b63c5ca741caa4e2d728ccafba
usb: dwc2: remove early return on clock query

Since we have assigned clk=NULL, which is a valid clk, we should not
be returning when a clock node is not provide. Instead, we should return
only when we cannot enable the clock.

Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc2/gadget.c