Commit 2d3e8f70 authored by Andre Przywara's avatar Andre Przywara Committed by Maxime Ripard
Browse files

drivers: sunxi-rsb: fix error output type



"len" is actually a size_t in this function here, so properly annotate
the dev_err printf type to allow compilation for 64-bit architectures.

Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 92e963f5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -330,7 +330,7 @@ static int sunxi_rsb_read(struct sunxi_rsb *rsb, u8 rtaddr, u8 addr,
		cmd = RSB_CMD_RD32;
		break;
	default:
		dev_err(rsb->dev, "Invalid access width: %d\n", len);
		dev_err(rsb->dev, "Invalid access width: %zd\n", len);
		return -EINVAL;
	}

@@ -372,7 +372,7 @@ static int sunxi_rsb_write(struct sunxi_rsb *rsb, u8 rtaddr, u8 addr,
		cmd = RSB_CMD_WR32;
		break;
	default:
		dev_err(rsb->dev, "Invalid access width: %d\n", len);
		dev_err(rsb->dev, "Invalid access width: %zd\n", len);
		return -EINVAL;
	}