diff options
author | Mikael Pettersson <mikpe@it.uu.se> | 2009-09-07 12:00:13 +0200 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-09-19 23:02:03 +0100 |
commit | b0999cc55bd49e315ec82d2fb770a0d9ef7cbed8 (patch) | |
tree | 4052376ab9149a0c73d9272556036284653fbd5e /drivers | |
parent | 78f28b7c555359c67c2a0d23f7436e915329421e (diff) | |
download | blackbird-op-linux-b0999cc55bd49e315ec82d2fb770a0d9ef7cbed8.tar.gz blackbird-op-linux-b0999cc55bd49e315ec82d2fb770a0d9ef7cbed8.zip |
i2c-mv64xxx: correct mv64xxx_i2c_intr() return type
The mv64xxx_i2c_intr() irq handler in drivers/i2c/busses/i2c-mv64xxx.c
is declared as returning 'int', resulting in this compile-time warning:
drivers/i2c/busses/i2c-mv64xxx.c: In function 'mv64xxx_i2c_probe':
drivers/i2c/busses/i2c-mv64xxx.c:540: warning: passing argument 2 of 'request_irq' from incompatible pointer type
Fix: correct the return type to 'irqreturn_t'.
Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/busses/i2c-mv64xxx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-mv64xxx.c b/drivers/i2c/busses/i2c-mv64xxx.c index c3869d94ad42..bbab0e166630 100644 --- a/drivers/i2c/busses/i2c-mv64xxx.c +++ b/drivers/i2c/busses/i2c-mv64xxx.c @@ -293,13 +293,13 @@ mv64xxx_i2c_do_action(struct mv64xxx_i2c_data *drv_data) } } -static int +static irqreturn_t mv64xxx_i2c_intr(int irq, void *dev_id) { struct mv64xxx_i2c_data *drv_data = dev_id; unsigned long flags; u32 status; - int rc = IRQ_NONE; + irqreturn_t rc = IRQ_NONE; spin_lock_irqsave(&drv_data->lock, flags); while (readl(drv_data->reg_base + MV64XXX_I2C_REG_CONTROL) & |