summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@jbarnes-t61.(none)>2008-06-04 12:50:03 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-06-04 12:50:03 -0700
commite90716671d7a5dabf13c22a339f750dba77f438a (patch)
tree9f579d133e6cf7898a4016d76a0727fd7ee8b2b3 /linux-core
parent52183fb05b8f8db0705e230fc0b8a436512759a1 (diff)
i915: use kzalloc to allocate intel_output for lvds
Better to initialize all the struct fields to 0. Also more consistent with other output init routines.
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/intel_lvds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/intel_lvds.c b/linux-core/intel_lvds.c
index cf9294ee..8d65c161 100644
--- a/linux-core/intel_lvds.c
+++ b/linux-core/intel_lvds.c
@@ -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;
}