Am Freitag, den 20.11.2015, 16:14 +0800 schrieb Liu Ying: > This patch adds a helper ipu_plane_cleanup() to cleanup a IPU plane. > It can be used in the bailout path of ipu_crtc_init(), for instance. > > Signed-off-by: Liu Ying <Ying.Liu@xxxxxxxxxxxxx> > --- > This patch applies to the imx-drm/fixes branch of Philipp Zabel's open git. > > drivers/gpu/drm/imx/ipuv3-plane.c | 6 ++++++ > drivers/gpu/drm/imx/ipuv3-plane.h | 2 ++ > 2 files changed, 8 insertions(+) > > diff --git a/drivers/gpu/drm/imx/ipuv3-plane.c b/drivers/gpu/drm/imx/ipuv3-plane.c > index e2ff410..e60b382 100644 > --- a/drivers/gpu/drm/imx/ipuv3-plane.c > +++ b/drivers/gpu/drm/imx/ipuv3-plane.c > @@ -410,3 +410,9 @@ struct ipu_plane *ipu_plane_init(struct drm_device *dev, struct ipu_soc *ipu, > > return ipu_plane; > } > + > +void ipu_plane_cleanup(struct ipu_plane *ipu_plane) > +{ > + drm_plane_cleanup(&ipu_plane->base); > + kfree(ipu_plane); > +} The name says cleanup, but that's not what it does. This function should be named ipu_plane_free, or ipu_plane_destroy. Actually, we have that already. regards Philipp _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel