drm/i915/intel_i2c: allocate gmbus array as part of drm_i915_private
authorDaniel Kurtz <djkurtz@chromium.org>
Tue, 27 Mar 2012 18:36:16 +0000 (02:36 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 28 Mar 2012 13:03:28 +0000 (15:03 +0200)
commitf2c9677be3158c31ba19f527e2be0f7a519e19d1
tree98c1caa6113e659ba2ab4bce67dbfa491103dad6
parent2ed06c93a1fce057808894d73167aae03c76deaf
drm/i915/intel_i2c: allocate gmbus array as part of drm_i915_private

This memory is always allocated, and it is always a fixed size, so just
allocate it along with the rest of the driver state.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_i2c.c