Skip to content

Commit b0999cc

Browse files
Mikael PetterssonBen Dooks
authored andcommitted
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>
1 parent 78f28b7 commit b0999cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/i2c/busses/i2c-mv64xxx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,13 +293,13 @@ mv64xxx_i2c_do_action(struct mv64xxx_i2c_data *drv_data)
293293
}
294294
}
295295

296-
static int
296+
static irqreturn_t
297297
mv64xxx_i2c_intr(int irq, void *dev_id)
298298
{
299299
struct mv64xxx_i2c_data *drv_data = dev_id;
300300
unsigned long flags;
301301
u32 status;
302-
int rc = IRQ_NONE;
302+
irqreturn_t rc = IRQ_NONE;
303303

304304
spin_lock_irqsave(&drv_data->lock, flags);
305305
while (readl(drv_data->reg_base + MV64XXX_I2C_REG_CONTROL) &

0 commit comments

Comments
 (0)