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.
main
Jesse Barnes 2008-06-04 12:50:03 -07:00 committed by Jesse Barnes
parent 52183fb05b
commit e90716671d
1 changed files with 1 additions and 1 deletions

View 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;
}