summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/via/via_aux_sii164.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/via/via_aux_sii164.c')
-rw-r--r--drivers/video/fbdev/via/via_aux_sii164.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/via/via_aux_sii164.c b/drivers/video/fbdev/via/via_aux_sii164.c
index ca1b35f033b1..c27f62c2c75a 100644
--- a/drivers/video/fbdev/via/via_aux_sii164.c
+++ b/drivers/video/fbdev/via/via_aux_sii164.c
@@ -36,7 +36,7 @@ static void probe(struct via_aux_bus *bus, u8 addr)
.name = name};
/* check vendor id and device id */
const u8 id[] = {0x01, 0x00, 0x06, 0x00}, len = ARRAY_SIZE(id);
- u8 tmp[len];
+ u8 tmp[ARRAY_SIZE(id)];
if (!via_aux_read(&drv, 0x00, tmp, len) || memcmp(id, tmp, len))
return;