diff options
| author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2015-01-20 17:55:58 -0500 |
|---|---|---|
| committer | Felipe Balbi <balbi@ti.com> | 2015-01-27 10:39:22 -0500 |
| commit | 667c45c2f159d3c4e1d592df42ffbc7d4d73e07b (patch) | |
| tree | b0b8ac9f1b572aff952feb230e8dcd4874d8bf6e /drivers/usb/host | |
| parent | 4b1a577d41c99f2aa548e8de3effe1033d9ca40b (diff) | |
usb: isp1760: Set IRQF_SHARED flag in core code
The IRQF_SHARED flag needs to be set regardless of the bus type. Don't
require glue code to set it manually.
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')
| -rw-r--r-- | drivers/usb/host/isp1760-core.c | 4 | ||||
| -rw-r--r-- | drivers/usb/host/isp1760-if.c | 9 |
2 files changed, 6 insertions, 7 deletions
diff --git a/drivers/usb/host/isp1760-core.c b/drivers/usb/host/isp1760-core.c index d38efa0e340a..35278a8356b3 100644 --- a/drivers/usb/host/isp1760-core.c +++ b/drivers/usb/host/isp1760-core.c | |||
| @@ -43,8 +43,8 @@ int isp1760_register(struct resource *mem, int irq, unsigned long irqflags, | |||
| 43 | if (IS_ERR(isp->regs)) | 43 | if (IS_ERR(isp->regs)) |
| 44 | return PTR_ERR(isp->regs); | 44 | return PTR_ERR(isp->regs); |
| 45 | 45 | ||
| 46 | ret = isp1760_hcd_register(&isp->hcd, isp->regs, mem, irq, irqflags, | 46 | ret = isp1760_hcd_register(&isp->hcd, isp->regs, mem, irq, |
| 47 | dev, devflags); | 47 | irqflags | IRQF_SHARED, dev, devflags); |
| 48 | if (ret < 0) | 48 | if (ret < 0) |
| 49 | return ret; | 49 | return ret; |
| 50 | 50 | ||
diff --git a/drivers/usb/host/isp1760-if.c b/drivers/usb/host/isp1760-if.c index f2a399051244..c2a94c966350 100644 --- a/drivers/usb/host/isp1760-if.c +++ b/drivers/usb/host/isp1760-if.c | |||
| @@ -142,8 +142,8 @@ static int isp1761_pci_probe(struct pci_dev *dev, | |||
| 142 | pci_set_master(dev); | 142 | pci_set_master(dev); |
| 143 | 143 | ||
| 144 | dev->dev.dma_mask = NULL; | 144 | dev->dev.dma_mask = NULL; |
| 145 | ret = isp1760_register(&dev->resource[3], dev->irq, IRQF_SHARED, | 145 | ret = isp1760_register(&dev->resource[3], dev->irq, 0, &dev->dev, |
| 146 | &dev->dev, devflags); | 146 | devflags); |
| 147 | if (ret < 0) | 147 | if (ret < 0) |
| 148 | goto error; | 148 | goto error; |
| 149 | 149 | ||
| @@ -190,7 +190,7 @@ static struct pci_driver isp1761_pci_driver = { | |||
| 190 | 190 | ||
| 191 | static int isp1760_plat_probe(struct platform_device *pdev) | 191 | static int isp1760_plat_probe(struct platform_device *pdev) |
| 192 | { | 192 | { |
| 193 | unsigned long irqflags = IRQF_SHARED; | 193 | unsigned long irqflags; |
| 194 | unsigned int devflags = 0; | 194 | unsigned int devflags = 0; |
| 195 | struct resource *mem_res; | 195 | struct resource *mem_res; |
| 196 | struct resource *irq_res; | 196 | struct resource *irq_res; |
| @@ -203,8 +203,7 @@ static int isp1760_plat_probe(struct platform_device *pdev) | |||
| 203 | pr_warning("isp1760: IRQ resource not available\n"); | 203 | pr_warning("isp1760: IRQ resource not available\n"); |
| 204 | return -ENODEV; | 204 | return -ENODEV; |
| 205 | } | 205 | } |
| 206 | 206 | irqflags = irq_res->flags & IRQF_TRIGGER_MASK; | |
| 207 | irqflags |= irq_res->flags & IRQF_TRIGGER_MASK; | ||
| 208 | 207 | ||
| 209 | if (IS_ENABLED(CONFIG_OF) && pdev->dev.of_node) { | 208 | if (IS_ENABLED(CONFIG_OF) && pdev->dev.of_node) { |
| 210 | struct device_node *dp = pdev->dev.of_node; | 209 | struct device_node *dp = pdev->dev.of_node; |
