usb: ohci: ohci-da8xx: Cleanup Error handling and fix flags
authorAdam Ford <aford173@gmail.com>
Tue, 7 May 2019 11:57:39 +0000 (06:57 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 9 May 2019 23:52:55 +0000 (19:52 -0400)
commit3a90b50a32b6b8a2d66dc10c19e3c15d5bd1a092
treef83c7bf586af88cc5d97dbd3e13496970d2fef54
parent80af0fed237aca17e1d32625a77426dbd49cf47f
usb: ohci: ohci-da8xx: Cleanup Error handling and fix flags

Per feedback from Marek, he suggested better handling and
to enable DM_FLAG_OS_PREPARE, this patch re-orders some of
the error checking, and errors returns the error code right
away and also sets DM_FLAG_OS_PREPARE.

Signed-off-by: Adam Ford <aford173@gmail.com>
drivers/usb/host/ohci-da8xx.c