[PATCH] drm/omap: fix unused variable warning in dsi & hdmi

Tomi Valkeinen tomi.valkeinen at ti.com
Fri Jun 3 11:27:03 UTC 2016


Signed-off-by: Tomi Valkeinen <tomi.valkeinen at ti.com>
---

Hi Dave,

The "omapdrm fixes for 4.7" pull req left three unused variables, of which one
you fixed in the drm-fixes branch. This removes the remaining two.

 Tomi

 drivers/gpu/drm/omapdrm/dss/dsi.c   | 1 -
 drivers/gpu/drm/omapdrm/dss/hdmi5.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c
index 9ed8272e54ae..56c43f355ce3 100644
--- a/drivers/gpu/drm/omapdrm/dss/dsi.c
+++ b/drivers/gpu/drm/omapdrm/dss/dsi.c
@@ -1167,7 +1167,6 @@ static int dsi_regulator_init(struct platform_device *dsidev)
 {
 	struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev);
 	struct regulator *vdds_dsi;
-	int r;
 
 	if (dsi->vdds_dsi_reg != NULL)
 		return 0;
diff --git a/drivers/gpu/drm/omapdrm/dss/hdmi5.c b/drivers/gpu/drm/omapdrm/dss/hdmi5.c
index e129245eb8a9..9255c0e1e4a7 100644
--- a/drivers/gpu/drm/omapdrm/dss/hdmi5.c
+++ b/drivers/gpu/drm/omapdrm/dss/hdmi5.c
@@ -120,7 +120,6 @@ static irqreturn_t hdmi_irq_handler(int irq, void *data)
 
 static int hdmi_init_regulator(void)
 {
-	int r;
 	struct regulator *reg;
 
 	if (hdmi.vdda_reg != NULL)
-- 
2.5.0



More information about the dri-devel mailing list