From patchwork Sat Nov 3 00:31:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Neri X-Patchwork-Id: 1691131 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 476B13FCDE for ; Fri, 2 Nov 2012 23:34:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756297Ab2KBXeS (ORCPT ); Fri, 2 Nov 2012 19:34:18 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:39760 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750928Ab2KBXeO (ORCPT ); Fri, 2 Nov 2012 19:34:14 -0400 Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id qA2NYDB4031810 for ; Fri, 2 Nov 2012 18:34:13 -0500 Received: from DLEE74.ent.ti.com (dlee74.ent.ti.com [157.170.170.8]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id qA2NYDuS013397 for ; Fri, 2 Nov 2012 18:34:13 -0500 Received: from dlelxv22.itg.ti.com (172.17.1.197) by DLEE74.ent.ti.com (157.170.170.8) with Microsoft SMTP Server id 14.1.323.3; Fri, 2 Nov 2012 18:34:13 -0500 Received: from localhost (dexx0075479.dextra-mty.naucm.ext.ti.com [10.87.228.135]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id qA2NYD0I002747; Fri, 2 Nov 2012 18:34:13 -0500 From: Ricardo Neri To: CC: , , , , Ricardo Neri Subject: [PATCH v2 5/7] OMAPDSS: HDMI: Uninit display on device add error Date: Fri, 2 Nov 2012 18:31:46 -0600 Message-ID: <1351902708-866-6-git-send-email-ricardo.neri@ti.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1351902708-866-1-git-send-email-ricardo.neri@ti.com> References: <1351902708-866-1-git-send-email-ricardo.neri@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The display must be uninitialized in order to free the requested GPIOs. Signed-off-by: Ricardo Neri --- drivers/video/omap2/dss/hdmi.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c index 696386c..4adf830 100644 --- a/drivers/video/omap2/dss/hdmi.c +++ b/drivers/video/omap2/dss/hdmi.c @@ -973,6 +973,7 @@ static void __init hdmi_probe_pdata(struct platform_device *pdev) r = dss_add_device(dssdev); if (r) { DSSERR("device %s register failed: %d\n", dssdev->name, r); + hdmi_uninit_display(dssdev); dss_put_device(dssdev); return; }