From 916f65a1e7ee3c1698aa56097d8336a0cf78d4c4 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Mon, 3 May 2021 12:35:53 +0200 Subject: [PATCH] drivers/video/fbdev/starfive/starfive_mipi_tx: correct va_start The second parameter of va_start() must be the last function parameter and not a local variable. Fixes: 81ed1feeee13 ("drivers/video/fbdev and drivers/media/platform") Signed-off-by: Heinrich Schuchardt --- drivers/video/fbdev/starfive/starfive_mipi_tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/starfive/starfive_mipi_tx.c b/drivers/video/fbdev/starfive/starfive_mipi_tx.c index 6ccc9780507e6..42a35090ffd7f 100644 --- a/drivers/video/fbdev/starfive/starfive_mipi_tx.c +++ b/drivers/video/fbdev/starfive/starfive_mipi_tx.c @@ -561,7 +561,7 @@ int dsitx_dcs_write(struct sf_fb_data *sf_dev, int n, ...) wbuf.len = 0; wbuf.val32 = 0; - va_start(ap, cmd_size); + va_start(ap, n); for (i = 0; i < cmd_size; i++) { wbuf.val8[wbuf.len++] = (char)va_arg(ap, int); if (((i + 1) & 0x3) == 0) {