aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/isp1760-if.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2015-01-21 00:55:51 +0200
committerFelipe Balbi <balbi@ti.com>2015-01-27 09:38:50 -0600
commit4942e00e5582dcb45d432c35d47980ced72cdb8e (patch)
treea977dc27c361265ea80ba6d4b06371137792df41 /drivers/usb/host/isp1760-if.c
parentusb: isp1760: Remove busname argument to isp1760_register (diff)
downloadlinux-dev-4942e00e5582dcb45d432c35d47980ced72cdb8e.tar.xz
linux-dev-4942e00e5582dcb45d432c35d47980ced72cdb8e.zip
usb: isp1760: Pass resource pointer to isp1760_register
The function takes quite a few arguments, passing the resource pointer instead of the start address and length simplifies it a bit. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/host/isp1760-if.c')
-rw-r--r--drivers/usb/host/isp1760-if.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/isp1760-if.c b/drivers/usb/host/isp1760-if.c
index ce572cc5ea50..3a9b4f6d29cb 100644
--- a/drivers/usb/host/isp1760-if.c
+++ b/drivers/usb/host/isp1760-if.c
@@ -133,8 +133,8 @@ static int isp1761_pci_probe(struct pci_dev *dev,
writel(reg_data, iobase + PLX_INT_CSR_REG);
dev->dev.dma_mask = NULL;
- ret_status = isp1760_register(pci_mem_phy0, memlength, dev->irq,
- IRQF_SHARED, &dev->dev, devflags);
+ ret_status = isp1760_register(&dev->resource[3], dev->irq, IRQF_SHARED,
+ &dev->dev, devflags);
if (ret_status < 0)
goto cleanup3;
@@ -257,8 +257,8 @@ static int isp1760_plat_probe(struct platform_device *pdev)
devflags |= ISP1760_FLAG_DREQ_POL_HIGH;
}
- ret = isp1760_register(mem_res->start, mem_size, irq_res->start,
- irqflags, &pdev->dev, devflags);
+ ret = isp1760_register(mem_res, irq_res->start, irqflags, &pdev->dev,
+ devflags);
if (ret < 0)
goto cleanup;