i915: use kzalloc to allocate intel_output for lvds
authorJesse Barnes <jbarnes@jbarnes-t61.(none)>
Wed, 4 Jun 2008 19:50:03 +0000 (12:50 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 4 Jun 2008 19:50:03 +0000 (12:50 -0700)
Better to initialize all the struct fields to 0.  Also more consistent with
other output init routines.

linux-core/intel_lvds.c

index cf9294e..8d65c16 100644 (file)
@@ -387,7 +387,7 @@ void intel_lvds_init(struct drm_device *dev)
        u32 lvds;
        int pipe;
 
-       intel_output = kmalloc(sizeof(struct intel_output), GFP_KERNEL);
+       intel_output = kzalloc(sizeof(struct intel_output), GFP_KERNEL);
        if (!intel_output) {
                return;
        }