Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350782
b: refs/heads/master
c: 32310aa
h: refs/heads/master
v: v3
  • Loading branch information
Murali Karicheri authored and Grant Likely committed Feb 5, 2013
1 parent f704fb4 commit 72918d5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 41ab724aac00cae42e649496c2567e9ef45dd753
refs/heads/master: 32310aaf5c410dd3dc701556cc9bbeff0847c7c9
17 changes: 15 additions & 2 deletions trunk/drivers/spi/spi-davinci.c
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,19 @@ static int davinci_spi_bufs(struct spi_device *spi, struct spi_transfer *t)
return ret;
}

/**
* dummy_thread_fn - dummy thread function
* @irq: IRQ number for this SPI Master
* @context_data: structure for SPI Master controller davinci_spi
*
* This is to satisfy the request_threaded_irq() API so that the irq
* handler is called in interrupt context.
*/
static irqreturn_t dummy_thread_fn(s32 irq, void *data)
{
return IRQ_HANDLED;
}

/**
* davinci_spi_irq - Interrupt handler for SPI Master Controller
* @irq: IRQ number for this SPI Master
Expand Down Expand Up @@ -899,8 +912,8 @@ static int davinci_spi_probe(struct platform_device *pdev)
goto unmap_io;
}

ret = request_irq(dspi->irq, davinci_spi_irq, 0, dev_name(&pdev->dev),
dspi);
ret = request_threaded_irq(dspi->irq, davinci_spi_irq, dummy_thread_fn,
0, dev_name(&pdev->dev), dspi);
if (ret)
goto unmap_io;

Expand Down

0 comments on commit 72918d5

Please sign in to comment.