From patchwork Wed Jun 30 14:15:27 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Afzal Mohammed X-Patchwork-Id: 108845 X-Patchwork-Delegate: tomi.valkeinen@nokia.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o5UEJQaH000304 for ; Wed, 30 Jun 2010 14:19:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756163Ab0F3OTA (ORCPT ); Wed, 30 Jun 2010 10:19:00 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:42502 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756113Ab0F3OS7 (ORCPT ); Wed, 30 Jun 2010 10:18:59 -0400 Received: by pwj8 with SMTP id 8so284845pwj.19 for ; Wed, 30 Jun 2010 07:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=Msl3gFZbnLt88mepE1qkoTrf0Fwm22ljDy+JAatmNoo=; b=wZgjrT1iepkLPOBbXzZ5yG6L5DkTxjn8VPPtWvynEXIUZUTNkkW7Ep2wk/Gxxiff26 zdut6lbwNP5cZ/JuDVqCwQfYrKdZpurBcBRrryFiIhtZdG2RzVTr+XJtgIR184yNEV46 58/fImxRWrNkyM9wqcMww+Ox3we9fyYfYC0A8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=rQYZc2jk6yJIYYUa3I4iJUwDUvUJ9TfbUmxpBzUCw+5tKVMgbVyhs6f44jtnL7O/zn xqf57j8BpnFQcsvNmRQ3+4iAhtPuSzTafNXe8PbN7hmkJv08otjc6nvjYxxwP5MXGyX0 kLoJzoqGYq1yl3DbpsbEQye5XXbn8qB7+1tVM= Received: by 10.143.136.3 with SMTP id o3mr10081288wfn.329.1277907538085; Wed, 30 Jun 2010 07:18:58 -0700 (PDT) Received: from localhost.localdomain ([122.167.9.142]) by mx.google.com with ESMTPS id e32sm5626650wfj.3.2010.06.30.07.18.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 30 Jun 2010 07:18:57 -0700 (PDT) From: Afzal Mohammed To: tomi.valkeinen@nokia.com Cc: ville.syrjala@nokia.com, tj@kernel.org, lazfamam@gmail.com, linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] OMAP:DSS2:OMAPFB: Fix probe error path Date: Wed, 30 Jun 2010 19:45:27 +0530 Message-Id: <1277907327-3443-1-git-send-email-lazfamam@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 30 Jun 2010 14:19:26 +0000 (UTC) diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index 4b4506d..2319b81 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c @@ -1945,6 +1945,7 @@ static int omapfb_create_framebuffers(struct omapfb2_device *fbdev) r = omapfb_overlay_enable(ovl, 1); if (r) { + omapfb_remove_sysfs(fbdev); dev_err(fbdev->dev, "failed to enable overlay\n"); return r;