summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2017-03-08 14:09:06 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-09 11:51:28 +0100
commitd5f52220e60dbd2ce0c39ba53b783a0a1c438470 (patch)
tree8d8bda8b025a21aa9343c0c4e50b87eab4c7dd1c /drivers/usb/host
parent05c34d220c8e3f3a30d5877ab56681fbae85622e (diff)
downloadbarebox-d5f52220e60dbd2ce0c39ba53b783a0a1c438470.tar.gz
barebox-d5f52220e60dbd2ce0c39ba53b783a0a1c438470.tar.xz
usb: echi-atmel: Check result of ehci_register()
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r--drivers/usb/host/ehci-atmel.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c
index 4b9fc0a948..f075b5080c 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)