summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-hcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ohci-hcd.c')
-rw-r--r--drivers/usb/host/ohci-hcd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index 3d18a73325..622f5c3a5b 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -47,6 +47,7 @@
#include <usb/usb_defs.h>
#include <init.h>
#include <errno.h>
+#include <linux/err.h>
#include <asm/byteorder.h>
#include <io.h>
@@ -1812,6 +1813,8 @@ static int ohci_probe(struct device_d *dev)
usb_register_host(host);
ohci->regs = dev_request_mem_region(dev, 0);
+ if (IS_ERR(ohci->regs))
+ return PTR_ERR(ohci->regs);
return 0;
}