[PATCH 40/45] usb: echi-atmel: Check result of ehci_register()
Andrey Smirnov
andrew.smirnov at gmail.com
Mon Mar 6 14:53:51 PST 2017
Signed-off-by: Andrey Smirnov <andrew.smirnov at gmail.com>
---
drivers/usb/host/ehci-atmel.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c
index 4b9fc0a..f075b50 100644
--- a/drivers/usb/host/ehci-atmel.c
+++ b/drivers/usb/host/ehci-atmel.c
@@ -96,9 +96,7 @@ static int atmel_ehci_probe(struct device_d *dev)
return PTR_ERR(iores);
data.hccr = IOMEM(iores->start);
- ehci_register(dev, &data);
-
- return 0;
+ return ehci_register(dev, &data);
}
static void atmel_ehci_remove(struct device_d *dev)
--
2.9.3
More information about the barebox
mailing list