diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/usb/host/isp116x-hcd.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/usb/host/isp116x-hcd.c')
-rw-r--r-- | drivers/usb/host/isp116x-hcd.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/usb/host/isp116x-hcd.c b/drivers/usb/host/isp116x-hcd.c index d9e82123de2a..baae4ccd16ac 100644 --- a/drivers/usb/host/isp116x-hcd.c +++ b/drivers/usb/host/isp116x-hcd.c | |||
@@ -612,6 +612,7 @@ static irqreturn_t isp116x_irq(struct usb_hcd *hcd) | |||
612 | /* IRQ's are off, we do no DMA, | 612 | /* IRQ's are off, we do no DMA, |
613 | perfectly ready to die ... */ | 613 | perfectly ready to die ... */ |
614 | hcd->state = HC_STATE_HALT; | 614 | hcd->state = HC_STATE_HALT; |
615 | usb_hc_died(hcd); | ||
615 | ret = IRQ_HANDLED; | 616 | ret = IRQ_HANDLED; |
616 | goto done; | 617 | goto done; |
617 | } | 618 | } |
@@ -951,9 +952,9 @@ static void isp116x_hub_descriptor(struct isp116x *isp116x, | |||
951 | /* Power switching, device type, overcurrent. */ | 952 | /* Power switching, device type, overcurrent. */ |
952 | desc->wHubCharacteristics = cpu_to_le16((u16) ((reg >> 8) & 0x1f)); | 953 | desc->wHubCharacteristics = cpu_to_le16((u16) ((reg >> 8) & 0x1f)); |
953 | desc->bPwrOn2PwrGood = (u8) ((reg >> 24) & 0xff); | 954 | desc->bPwrOn2PwrGood = (u8) ((reg >> 24) & 0xff); |
954 | /* two bitmaps: ports removable, and legacy PortPwrCtrlMask */ | 955 | /* ports removable, and legacy PortPwrCtrlMask */ |
955 | desc->bitmap[0] = 0; | 956 | desc->u.hs.DeviceRemovable[0] = 0; |
956 | desc->bitmap[1] = ~0; | 957 | desc->u.hs.DeviceRemovable[1] = ~0; |
957 | } | 958 | } |
958 | 959 | ||
959 | /* Perform reset of a given port. | 960 | /* Perform reset of a given port. |
@@ -1557,8 +1558,6 @@ static int isp116x_remove(struct platform_device *pdev) | |||
1557 | return 0; | 1558 | return 0; |
1558 | } | 1559 | } |
1559 | 1560 | ||
1560 | #define resource_len(r) (((r)->end - (r)->start) + 1) | ||
1561 | |||
1562 | static int __devinit isp116x_probe(struct platform_device *pdev) | 1561 | static int __devinit isp116x_probe(struct platform_device *pdev) |
1563 | { | 1562 | { |
1564 | struct usb_hcd *hcd; | 1563 | struct usb_hcd *hcd; |
@@ -1597,7 +1596,7 @@ static int __devinit isp116x_probe(struct platform_device *pdev) | |||
1597 | ret = -EBUSY; | 1596 | ret = -EBUSY; |
1598 | goto err1; | 1597 | goto err1; |
1599 | } | 1598 | } |
1600 | addr_reg = ioremap(addr->start, resource_len(addr)); | 1599 | addr_reg = ioremap(addr->start, resource_size(addr)); |
1601 | if (addr_reg == NULL) { | 1600 | if (addr_reg == NULL) { |
1602 | ret = -ENOMEM; | 1601 | ret = -ENOMEM; |
1603 | goto err2; | 1602 | goto err2; |
@@ -1606,7 +1605,7 @@ static int __devinit isp116x_probe(struct platform_device *pdev) | |||
1606 | ret = -EBUSY; | 1605 | ret = -EBUSY; |
1607 | goto err3; | 1606 | goto err3; |
1608 | } | 1607 | } |
1609 | data_reg = ioremap(data->start, resource_len(data)); | 1608 | data_reg = ioremap(data->start, resource_size(data)); |
1610 | if (data_reg == NULL) { | 1609 | if (data_reg == NULL) { |
1611 | ret = -ENOMEM; | 1610 | ret = -ENOMEM; |
1612 | goto err4; | 1611 | goto err4; |