usb: musb: da8xx: Call earlier clk_prepare_enable()
authorAlexandre Bailon <abailon@baylibre.com>
Mon, 21 Nov 2016 14:59:30 +0000 (08:59 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Nov 2016 16:35:37 +0000 (17:35 +0100)
commit09721ba6daa19e75446bac463acf9c28e8ed9acc
tree940c11cc39abaa82b39d9830e3fd29d7f60cf327
parent35bd67b2e566e400d7c6984cd0b1d10cef58f799
usb: musb: da8xx: Call earlier clk_prepare_enable()

The first attempt to read a register may fail because the clock may not
be enabled, and then the probe of musb driver will fail.
Call clk_prepare_enable() before the first register read.

Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/da8xx.c