OMAPFB: use devm_kzalloc to allocate omapfb2_device
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 13 Dec 2012 10:08:21 +0000 (12:08 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 13 Dec 2012 10:08:21 +0000 (12:08 +0200)
commit057eeaee6803dafbbf2f79345643530e731ba7cb
treef9a2452a84d21d182a32fd2c92e5929a8e6f34b4
parent8105c94bc4f94478c67afb7593724e4d684dd9c0
OMAPFB: use devm_kzalloc to allocate omapfb2_device

Use devm_kzalloc to allocate omapfb2_device. This fixes possible memory
leak:

drivers/video/omap2/omapfb/omapfb-main.c:2553 omapfb_probe() warn:
possible memory leak of 'fbdev'

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