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:
parent
05c34d220c
commit
d5f52220e6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue