usb: host: ohci-tmio: check return value after calling platform_get_resource()
[linux-2.6-microblaze.git] / drivers / usb / host / ohci-tmio.c
index 08ec2ab..3f3d62d 100644 (file)
@@ -199,7 +199,7 @@ static int ohci_hcd_tmio_drv_probe(struct platform_device *dev)
        if (usb_disabled())
                return -ENODEV;
 
-       if (!cell)
+       if (!cell || !regs || !config || !sram)
                return -EINVAL;
 
        if (irq < 0)