]> git.baikalelectronics.ru Git - kernel.git/commit
OMAP: DSS2: OMAPFB: Reduce stack usage
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Sat, 30 Apr 2011 12:26:40 +0000 (15:26 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 12 May 2011 16:39:52 +0000 (19:39 +0300)
commit94e8bdc109cedc55fe027192627944ed8844802f
tree0c626cc26dc115392f0138cb7e626d04a7983ae7
parentbddb8360b1acb413d041f0bf0d0b49ba893d9a83
OMAP: DSS2: OMAPFB: Reduce stack usage

omapfb_mode_to_timings() had struct fb_info, struct fb_var and struct
fb_ops allocated from stack. This caused the stack usage grow quite
high.

Use kzalloc to allocate the structs instead.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/omapfb/omapfb-main.c