summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/via/via_aux_vt1636.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/via/via_aux_vt1636.c')
-rw-r--r--drivers/video/fbdev/via/via_aux_vt1636.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/via/via_aux_vt1636.c b/drivers/video/fbdev/via/via_aux_vt1636.c
index 9e015c101d4d..2b10bc21ab79 100644
--- a/drivers/video/fbdev/via/via_aux_vt1636.c
+++ b/drivers/video/fbdev/via/via_aux_vt1636.c
@@ -36,7 +36,7 @@ void via_aux_vt1636_probe(struct via_aux_bus *bus)
.name = name};
/* check vendor id and device id */
const u8 id[] = {0x06, 0x11, 0x45, 0x33}, 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;