From patchwork Mon Aug 22 08:27:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 1084582 X-Patchwork-Delegate: tomi.valkeinen@nokia.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7M8RlEK020525 for ; Mon, 22 Aug 2011 08:28:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755842Ab1HVI1g (ORCPT ); Mon, 22 Aug 2011 04:27:36 -0400 Received: from na3sys009aog122.obsmtp.com ([74.125.149.147]:34796 "EHLO na3sys009aog122.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755754Ab1HVI1d (ORCPT ); Mon, 22 Aug 2011 04:27:33 -0400 Received: from mail-bw0-f44.google.com ([209.85.214.44]) (using TLSv1) by na3sys009aob122.postini.com ([74.125.148.12]) with SMTP ID DSNKTlIS8kq7Lg/GwR2ycbSyS/yv5/KaO97S@postini.com; Mon, 22 Aug 2011 01:27:33 PDT Received: by bkar4 with SMTP id r4so4262600bka.31 for ; Mon, 22 Aug 2011 01:27:29 -0700 (PDT) Received: by 10.204.149.200 with SMTP id u8mr804472bkv.68.1314001648786; Mon, 22 Aug 2011 01:27:28 -0700 (PDT) Received: from localhost.localdomain (a62-248-128-208.elisa-laajakaista.fi [62.248.128.208]) by mx.google.com with ESMTPS id n24sm1839229bkd.8.2011.08.22.01.27.26 (version=SSLv3 cipher=OTHER); Mon, 22 Aug 2011 01:27:27 -0700 (PDT) From: Tomi Valkeinen To: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org Cc: archit@ti.com, Tomi Valkeinen Subject: [PATCH 1/4] OMAP: OMAPFB: make omapfb start even when a display is missing a driver Date: Mon, 22 Aug 2011 11:27:13 +0300 Message-Id: <1314001636-18036-2-git-send-email-tomi.valkeinen@ti.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1314001636-18036-1-git-send-email-tomi.valkeinen@ti.com> References: <1314001636-18036-1-git-send-email-tomi.valkeinen@ti.com> 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.6 (demeter1.kernel.org [140.211.167.41]); Mon, 22 Aug 2011 08:28:06 +0000 (UTC) Currently omapfb wants that all the display devices have a driver, otherwise omapfb refuses to start. There's no real requirement to act like that, and this patch will make omapfb give a warning and skip that device. Signed-off-by: Tomi Valkeinen --- drivers/video/omap2/omapfb/omapfb-main.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index e5a64b3..cd2cae8e 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c @@ -2373,9 +2373,10 @@ static int omapfb_probe(struct platform_device *pdev) omap_dss_get_device(dssdev); if (!dssdev->driver) { - dev_err(&pdev->dev, "no driver for display: %s\n", + dev_warn(&pdev->dev, "no driver for display: %s\n", dssdev->name); - r = -ENODEV; + omap_dss_put_device(dssdev); + continue; } d = &fbdev->displays[fbdev->num_displays++];