OSDN Git Service

usb: ohci-spear: Remove direct access to platform_device resource list
[uclinux-h8/linux.git] / drivers / usb / host / ohci-spear.c
index b4cd9e6..9b81f42 100644 (file)
@@ -76,7 +76,7 @@ static int spear_ohci_hcd_drv_probe(struct platform_device *pdev)
                goto err_put_hcd;
        }
 
-       hcd->rsrc_start = pdev->resource[0].start;
+       hcd->rsrc_start = res->start;
        hcd->rsrc_len = resource_size(res);
 
        sohci_p = to_spear_ohci(hcd);