From: Sebastian Reichel Subject: Re: [PATCH 07/48] drm: omapdrm: dpi: Remove dpi_data port_initialized field Date: Sat, 14 Oct 2017 14:28:23 +0200 Message-ID: <20171014122822.3qdpwrgrsmd675uk@earth> References: <20171013145944.26557-1-laurent.pinchart@ideasonboard.com> <20171013145944.26557-8-laurent.pinchart@ideasonboard.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0370728615==" Return-path: Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2D0616E0CA for ; Sat, 14 Oct 2017 12:28:26 +0000 (UTC) In-Reply-To: <20171013145944.26557-8-laurent.pinchart@ideasonboard.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Laurent Pinchart Cc: Tomi Valkeinen , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0370728615== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6nqsfl3q2rvafnhz" Content-Disposition: inline --6nqsfl3q2rvafnhz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Fri, Oct 13, 2017 at 05:59:03PM +0300, Laurent Pinchart wrote: > The dpi_data structure port_initialized field is used to check in the > cleanup path whether the DPI has been initialized. This can be performed > through the associated device_node data field instead. Remove the > port_initialized field. >=20 > Signed-off-by: Laurent Pinchart > --- Reviewed-by: Sebastian Reichel -- Sebastian > drivers/gpu/drm/omapdrm/dss/dpi.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) >=20 > diff --git a/drivers/gpu/drm/omapdrm/dss/dpi.c b/drivers/gpu/drm/omapdrm/= dss/dpi.c > index daf286fc8a40..ce9b27978f48 100644 > --- a/drivers/gpu/drm/omapdrm/dss/dpi.c > +++ b/drivers/gpu/drm/omapdrm/dss/dpi.c > @@ -52,8 +52,6 @@ struct dpi_data { > int data_lines; > =20 > struct omap_dss_device output; > - > - bool port_initialized; > }; > =20 > static struct dpi_data *dpi_get_data_from_dssdev(struct omap_dss_device = *dssdev) > @@ -786,8 +784,6 @@ int dpi_init_port(struct platform_device *pdev, struc= t device_node *port, > =20 > dpi_init_output_port(dpi, port); > =20 > - dpi->port_initialized =3D true; > - > return 0; > =20 > err_datalines: > @@ -800,7 +796,7 @@ void dpi_uninit_port(struct device_node *port) > { > struct dpi_data *dpi =3D port->data; > =20 > - if (!dpi->port_initialized) > + if (!dpi) > return; > =20 > dpi_uninit_output_port(port); > --=20 > Regards, >=20 > Laurent Pinchart >=20 > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel --6nqsfl3q2rvafnhz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAlniAuYACgkQ2O7X88g7 +prbZQ//Q36HN3ZiY8rqWfoZnsJkvPSwWlS1lEhyLE0mHz+3fou2xwRlXFKbvguz BFqqXkJLQXrLDltNZJEtpiQiOQhhxOnWRxpXPqF5qLMO51PbPenrgCYmZiQ/JLe9 V75iBSERlv1zwXt0nNARLHtqSInxGPQ9kuwB0wZ3GkL3Jons2iDjKEiI1yItHJH7 0JZvFlS0EEaSdMrraFOa6hSsllEmyqvgcVhCI1NYqvdHR3wq3gELHMXZr68/HZIz VQXZLBRSps3KReh2CwfwpBqMbZDurHJ6RExB0qFzPlySxt0DgnTEql8K3m5x2OWv CWrG8/6gyzPoossihSAZnDeyqj9D0wZiEQ1QrljraQZPOuiadhEFPMORdBQvkS7p CggezMoEoG9WrjjZIa1K+mbzPjqfQsfYTLthlrodzMRAyLlHMIih1WzuQIw7mwv9 fN4WYqSPMXOHRl2ablbbMmAUHvXthK6DrXxwgs5qNrIs4tq2hKpehSJgMXsN6igO UnSsKeL7gYYNxin5fNTEDlUBmR/fN/zvspDB/5ekQ4n7EX/xCJ5fPH/kHnw5+Sg7 EwRsb63kn1fUCq99Ey/LO6hb0ojlu/jVb8e5JVHFWXqb0z8sUWFa+x9+4g7mXVPN hUxz6mbb+RWvfapBIqx6uoon2gyt3ZV4HXWgDvUKDEJnfHNyltE= =T8lV -----END PGP SIGNATURE----- --6nqsfl3q2rvafnhz-- --===============0370728615== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0370728615==--