diff options
Diffstat (limited to 'drivers/usb/host/sl811-hcd.c')
-rw-r--r-- | drivers/usb/host/sl811-hcd.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c index 6b4bc3f2bd86..fa34092bbcde 100644 --- a/drivers/usb/host/sl811-hcd.c +++ b/drivers/usb/host/sl811-hcd.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #undef VERBOSE | 31 | #undef VERBOSE |
32 | #undef PACKET_TRACE | 32 | #undef PACKET_TRACE |
33 | 33 | ||
34 | #include <linux/config.h> | ||
35 | #include <linux/module.h> | 34 | #include <linux/module.h> |
36 | #include <linux/moduleparam.h> | 35 | #include <linux/moduleparam.h> |
37 | #include <linux/kernel.h> | 36 | #include <linux/kernel.h> |
@@ -1684,9 +1683,13 @@ sl811h_probe(struct platform_device *dev) | |||
1684 | if (!addr || !data) | 1683 | if (!addr || !data) |
1685 | return -ENODEV; | 1684 | return -ENODEV; |
1686 | ioaddr = 1; | 1685 | ioaddr = 1; |
1687 | 1686 | /* | |
1688 | addr_reg = (void __iomem *) addr->start; | 1687 | * NOTE: 64-bit resource->start is getting truncated |
1689 | data_reg = (void __iomem *) data->start; | 1688 | * to avoid compiler warning, assuming that ->start |
1689 | * is always 32-bit for this case | ||
1690 | */ | ||
1691 | addr_reg = (void __iomem *) (unsigned long) addr->start; | ||
1692 | data_reg = (void __iomem *) (unsigned long) data->start; | ||
1690 | } else { | 1693 | } else { |
1691 | addr_reg = ioremap(addr->start, 1); | 1694 | addr_reg = ioremap(addr->start, 1); |
1692 | if (addr_reg == NULL) { | 1695 | if (addr_reg == NULL) { |
@@ -1746,7 +1749,7 @@ sl811h_probe(struct platform_device *dev) | |||
1746 | * was on a system with single edge triggering, so most sorts of | 1749 | * was on a system with single edge triggering, so most sorts of |
1747 | * triggering arrangement should work. | 1750 | * triggering arrangement should work. |
1748 | */ | 1751 | */ |
1749 | retval = usb_add_hcd(hcd, irq, SA_INTERRUPT | SA_SHIRQ); | 1752 | retval = usb_add_hcd(hcd, irq, IRQF_DISABLED | IRQF_SHARED); |
1750 | if (retval != 0) | 1753 | if (retval != 0) |
1751 | goto err6; | 1754 | goto err6; |
1752 | 1755 | ||