9
0
Fork 0

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>
This commit is contained in:
Andrey Smirnov 2017-03-08 14:09:06 -08:00 committed by Sascha Hauer
parent 05c34d220c
commit d5f52220e6
1 changed files with 1 additions and 3 deletions

View File

@ -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)