diff options
author | Shikha Singh <shikha.singh@st.com> | 2015-12-22 04:53:37 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-12-29 13:06:12 -0500 |
commit | 6b52d994b2763c87d67b0968fa746824f8855783 (patch) | |
tree | e6d35bf4828f8877047bb94798512b9c04665fe1 /drivers/nfc/st95hf | |
parent | ccf614f5c0eb8ac18cc3c04e3fc9fc09d76e1052 (diff) |
NFC: st95hf: Fix build error
This fixes a build error on the mn10300 architecture:
drivers/nfc/st95hf/core.c:765:20: error: conflicting types for 'irq_handler'
static irqreturn_t irq_handler(int irq, void *st95hfcontext)
^
In file included from arch/mn10300/include/asm/reset-regs.h:16:0,
from arch/mn10300/include/asm/irq.h:18,
from include/linux/irq.h:26,
from arch/mn10300/include/asm/hardirq.h:16,
from include/linux/hardirq.h:8,
from include/linux/interrupt.h:12,
from drivers/nfc/st95hf/core.c:23:
arch/mn10300/include/asm/exceptions.h:107:24: note: previous declaration of 'irq_handler' was here
extern asmlinkage void irq_handler(void);
Signed-off-by: Shikha Singh <shikha.singh@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/st95hf')
-rw-r--r-- | drivers/nfc/st95hf/core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/nfc/st95hf/core.c b/drivers/nfc/st95hf/core.c index 454efc6ae3f4..c2840e412962 100644 --- a/drivers/nfc/st95hf/core.c +++ b/drivers/nfc/st95hf/core.c | |||
@@ -762,7 +762,7 @@ static int st95hf_response_handler(struct st95hf_context *stcontext, | |||
762 | return result; | 762 | return result; |
763 | } | 763 | } |
764 | 764 | ||
765 | static irqreturn_t irq_handler(int irq, void *st95hfcontext) | 765 | static irqreturn_t st95hf_irq_handler(int irq, void *st95hfcontext) |
766 | { | 766 | { |
767 | struct st95hf_context *stcontext = | 767 | struct st95hf_context *stcontext = |
768 | (struct st95hf_context *)st95hfcontext; | 768 | (struct st95hf_context *)st95hfcontext; |
@@ -776,7 +776,7 @@ static irqreturn_t irq_handler(int irq, void *st95hfcontext) | |||
776 | return IRQ_WAKE_THREAD; | 776 | return IRQ_WAKE_THREAD; |
777 | } | 777 | } |
778 | 778 | ||
779 | static irqreturn_t irq_thread_handler(int irq, void *st95hfcontext) | 779 | static irqreturn_t st95hf_irq_thread_handler(int irq, void *st95hfcontext) |
780 | { | 780 | { |
781 | int result = 0; | 781 | int result = 0; |
782 | int res_len; | 782 | int res_len; |
@@ -1140,8 +1140,8 @@ static int st95hf_probe(struct spi_device *nfc_spi_dev) | |||
1140 | if (nfc_spi_dev->irq > 0) { | 1140 | if (nfc_spi_dev->irq > 0) { |
1141 | if (devm_request_threaded_irq(&nfc_spi_dev->dev, | 1141 | if (devm_request_threaded_irq(&nfc_spi_dev->dev, |
1142 | nfc_spi_dev->irq, | 1142 | nfc_spi_dev->irq, |
1143 | irq_handler, | 1143 | st95hf_irq_handler, |
1144 | irq_thread_handler, | 1144 | st95hf_irq_thread_handler, |
1145 | IRQF_TRIGGER_FALLING, | 1145 | IRQF_TRIGGER_FALLING, |
1146 | "st95hf", | 1146 | "st95hf", |
1147 | (void *)st95context) < 0) { | 1147 | (void *)st95context) < 0) { |