USB: host: ehci-npcm7xx: Fix some error codes in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 27 Jun 2018 08:37:05 +0000 (11:37 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 10:32:42 +0000 (19:32 +0900)
commit4da24f4dd0bb2b88e9c84690aa769b524c63b316
tree31d55579522b549009a55fd051aad48a63bc82a1
parentdc748b66dbfbbfa187044f007d42d9cc01e5ab11
USB: host: ehci-npcm7xx: Fix some error codes in probe

We accidentally return 1 instead of negative error codes.

Fixes: df44831ee2dd ("USB host: Add USB ehci support for nuvoton npcm7xx platform")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Avi Fishman <AviFishman70@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-npcm7xx.c