Files
android_kernel_xiaomi_sm8450/drivers/gpu/drm
Tomi Valkeinen efd1f06be0 drm/omap: cleanup fbdev init/free
omap_fbdev_init() and omap_fbdev_free() use priv->fbdev directly.
However, omap_fbdev_init() returns the fbdev, and omap_drv.c also
assigns the return value to priv->fbdev. This is slightly confusing.

Clean this up by removing the omap_fbdev_init() return value, as we
don't care whether fbdev init succeeded or not. Also change omap_drv.c
to call omap_fbdev_free() always, and omap_fbdev_free() does the check
if fbdev was initialized.

While at it, rename omap_fbdev_free() to omap_fbdev_fini() to better
match the "init" counterpart.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2018-03-01 09:18:18 +02:00
..
2018-01-30 18:05:25 +01:00
2018-02-01 11:35:46 +10:00
2018-03-01 09:18:18 +02:00
2017-12-27 19:00:09 -05:00
2018-02-19 14:19:04 -05:00
2018-02-19 14:19:52 -05:00
2017-11-23 12:31:49 +02:00
2018-01-24 15:49:04 -05:00