Commit 9dd894d5 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Tomi Valkeinen

drm: omapdrm: dpi: Remove dpi_data port_initialized field

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.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 9be9d7ef
...@@ -52,8 +52,6 @@ struct dpi_data { ...@@ -52,8 +52,6 @@ struct dpi_data {
int data_lines; int data_lines;
struct omap_dss_device output; struct omap_dss_device output;
bool port_initialized;
}; };
static struct dpi_data *dpi_get_data_from_dssdev(struct omap_dss_device *dssdev) 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, struct device_node *port, ...@@ -786,8 +784,6 @@ int dpi_init_port(struct platform_device *pdev, struct device_node *port,
dpi_init_output_port(dpi, port); dpi_init_output_port(dpi, port);
dpi->port_initialized = true;
return 0; return 0;
err_datalines: err_datalines:
...@@ -800,7 +796,7 @@ void dpi_uninit_port(struct device_node *port) ...@@ -800,7 +796,7 @@ void dpi_uninit_port(struct device_node *port)
{ {
struct dpi_data *dpi = port->data; struct dpi_data *dpi = port->data;
if (!dpi->port_initialized) if (!dpi)
return; return;
dpi_uninit_output_port(port); dpi_uninit_output_port(port);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment