OSDN Git Service

drm/sun4i: layer: Assign backend pointer before calling DRM helpers
authorChen-Yu Tsai <wens@csie.org>
Fri, 25 Jan 2019 03:23:07 +0000 (11:23 +0800)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Fri, 25 Jan 2019 09:41:45 +0000 (10:41 +0100)
commite2b1d3d9ff5bda2c4caedb86dc4787ee5eb991d3
tree4fdf473ec3754e4fc1f00f79644a68d529a1d79e
parent09e54440979c1cfa7b3f84db00835449c9f63a3a
drm/sun4i: layer: Assign backend pointer before calling DRM helpers

We might want to use the backend pointer from DRM callbacks that get
called within drm_universal_plane_init(), such as the
.format_mod_supported callback.

Move the assignment of the layer's backend pointer to right after the
structure is allocated.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190125032314.20915-5-wens@csie.org
drivers/gpu/drm/sun4i/sun4i_layer.c