summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDennis Munsie <dmunsie@cecropia.com>2006-06-07 08:53:38 (GMT)
committerDave Airlie <airlied@linux.ie>2006-06-07 08:53:38 (GMT)
commit72109368de7aaa5d489d9ca4641f4a11a6fc7653 (patch)
tree0ea8bd820daf11bea34c45f319c2ea0b848d166b /drivers
parent7a532c69c37dbb46bfd0276160e624f06552adfc (diff)
downloadlinux-fsl-qoriq-72109368de7aaa5d489d9ca4641f4a11a6fc7653.tar.xz
Removed hard coded EDID buffer size.
Signed-off-by: Dennis Munsie <dmunsie@cecropia.com> Acked-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/intelfb/intelfbdrv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c
index 85bf558..076fa56 100644
--- a/drivers/video/intelfb/intelfbdrv.c
+++ b/drivers/video/intelfb/intelfbdrv.c
@@ -1036,10 +1036,10 @@ intelfb_init_var(struct intelfb_info *dinfo)
u8 *edid_d = NULL;
if (edid_s) {
- edid_d = kmalloc(128, GFP_KERNEL);
+ edid_d = kmalloc(EDID_LENGTH, GFP_KERNEL);
if (edid_d) {
- memcpy(edid_d, edid_s, 128);
+ memcpy(edid_d, edid_s, EDID_LENGTH);
fb_edid_to_monspecs(edid_d,
&dinfo->info->monspecs);
kfree(edid_d);