diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-22 23:30:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-22 23:30:48 -0400 |
commit | 5cc103506289de7ee0a0b526ae0381541990cad4 (patch) | |
tree | ae8a4958e70c6d1295030b40e333dcc007b3c074 /drivers/usb/host/isp116x-hcd.c | |
parent | 73ecf3a6e3f0206bf56a0fefe3b3eda042fb7034 (diff) | |
parent | 92ca0dc5ee022e4c0e488177e1d8865a0778c6c2 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (141 commits)
USB: mct_u232: fix broken close
USB: gadget: amd5536udc.c: fix error path
USB: imx21-hcd - fix off by one resource size calculation
usb: gadget: fix Kconfig warning
usb: r8a66597-udc: Add processing when USB was removed.
mxc_udc: add workaround for ENGcm09152 for i.MX35
USB: ftdi_sio: add device ids for ScienceScope
USB: musb: AM35x: Workaround for fifo read issue
USB: musb: add musb support for AM35x
USB: AM35x: Add musb support
usb: Fix linker errors with CONFIG_PM=n
USB: ohci-sh - use resource_size instead of defining its own resource_len macro
USB: isp1362-hcd - use resource_size instead of defining its own resource_len macro
USB: isp116x-hcd - use resource_size instead of defining its own resource_len macro
USB: xhci: Fix compile error when CONFIG_PM=n
USB: accept some invalid ep0-maxpacket values
USB: xHCI: PCI power management implementation
USB: xHCI: bus power management implementation
USB: xHCI: port remote wakeup implementation
USB: xHCI: port power management implementation
...
Manually fix up (non-data) conflict: the SCSI merge gad renamed the
'hw_sector_size' member to 'physical_block_size', and the USB tree
brought a new use of it.
Diffstat (limited to 'drivers/usb/host/isp116x-hcd.c')
-rw-r--r-- | drivers/usb/host/isp116x-hcd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/usb/host/isp116x-hcd.c b/drivers/usb/host/isp116x-hcd.c index d9e82123de2a..0da7fc05f453 100644 --- a/drivers/usb/host/isp116x-hcd.c +++ b/drivers/usb/host/isp116x-hcd.c | |||
@@ -1557,8 +1557,6 @@ static int isp116x_remove(struct platform_device *pdev) | |||
1557 | return 0; | 1557 | return 0; |
1558 | } | 1558 | } |
1559 | 1559 | ||
1560 | #define resource_len(r) (((r)->end - (r)->start) + 1) | ||
1561 | |||
1562 | static int __devinit isp116x_probe(struct platform_device *pdev) | 1560 | static int __devinit isp116x_probe(struct platform_device *pdev) |
1563 | { | 1561 | { |
1564 | struct usb_hcd *hcd; | 1562 | struct usb_hcd *hcd; |
@@ -1597,7 +1595,7 @@ static int __devinit isp116x_probe(struct platform_device *pdev) | |||
1597 | ret = -EBUSY; | 1595 | ret = -EBUSY; |
1598 | goto err1; | 1596 | goto err1; |
1599 | } | 1597 | } |
1600 | addr_reg = ioremap(addr->start, resource_len(addr)); | 1598 | addr_reg = ioremap(addr->start, resource_size(addr)); |
1601 | if (addr_reg == NULL) { | 1599 | if (addr_reg == NULL) { |
1602 | ret = -ENOMEM; | 1600 | ret = -ENOMEM; |
1603 | goto err2; | 1601 | goto err2; |
@@ -1606,7 +1604,7 @@ static int __devinit isp116x_probe(struct platform_device *pdev) | |||
1606 | ret = -EBUSY; | 1604 | ret = -EBUSY; |
1607 | goto err3; | 1605 | goto err3; |
1608 | } | 1606 | } |
1609 | data_reg = ioremap(data->start, resource_len(data)); | 1607 | data_reg = ioremap(data->start, resource_size(data)); |
1610 | if (data_reg == NULL) { | 1608 | if (data_reg == NULL) { |
1611 | ret = -ENOMEM; | 1609 | ret = -ENOMEM; |
1612 | goto err4; | 1610 | goto err4; |