drm/i915: [sparse] don't use variable size arrays
authorBen Widawsky <ben@bwidawsk.net>
Mon, 16 Apr 2012 21:07:41 +0000 (14:07 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Apr 2012 08:34:50 +0000 (10:34 +0200)
commit3bf3f452362841404fe6d4589883f9471842ef8b
tree9d8b2ce8b3317deb421368774f547a85146345d0
parentc43b5634037ff00c83cde4ab7fc5e46831c846ef
drm/i915: [sparse] don't use variable size arrays

Sparse doesn't like:
"error: bad constant expression"

Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
[danvet: apply s/drm_malloc_ab/kcalloc bikeshed. If it's small enough
for the stack, it's small enough for kmalloc.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_sdvo.c