projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52183fb
)
i915: use kzalloc to allocate intel_output for lvds
author
Jesse Barnes
<jbarnes@jbarnes-t61.(none)>
Wed, 4 Jun 2008 19:50:03 +0000
(12:50 -0700)
committer
Jesse 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
patch
|
blob
|
history
diff --git
a/linux-core/intel_lvds.c
b/linux-core/intel_lvds.c
index cf9294eec5f34707f5e868f8f4295f19b7e9d5ea..8d65c16176f46dc189059ddcb63cd2a335dced39 100644
(file)
--- 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 = k
m
alloc(sizeof(struct intel_output), GFP_KERNEL);
+ intel_output = k
z
alloc(sizeof(struct intel_output), GFP_KERNEL);
if (!intel_output) {
return;
}