From: Roel Kluin <12o3l@tiscali.nl> Date: Fri, 23 May 2008 20:04:43 +0000 (-0700) Subject: gpio: mcp23s08 debug fix X-Git-Tag: Ubuntu-5.2.0-15.16~35419 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=1d1c1d9b557a12320174058d2d313ffb0f8611f4;p=mirror_ubuntu-eoan-kernel.git gpio: mcp23s08 debug fix The return value of mcp23s08_read_regs() can only be evaluated when signed Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Signed-off-by: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/gpio/mcp23s08.c b/drivers/gpio/mcp23s08.c index 7fb5b9d009d4..7f92fdd5f0e2 100644 --- a/drivers/gpio/mcp23s08.c +++ b/drivers/gpio/mcp23s08.c @@ -168,7 +168,7 @@ static void mcp23s08_dbg_show(struct seq_file *s, struct gpio_chip *chip) { struct mcp23s08 *mcp; char bank; - unsigned t; + int t; unsigned mask; mcp = container_of(chip, struct mcp23s08, chip);