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: 1084822 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 p7M8Xja2024422 for ; Mon, 22 Aug 2011 08:34:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753336Ab1HVIeD (ORCPT ); Mon, 22 Aug 2011 04:34:03 -0400 Received: from na3sys009aog105.obsmtp.com ([74.125.149.75]:54254 "EHLO na3sys009aog105.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752339Ab1HVIeD (ORCPT ); Mon, 22 Aug 2011 04:34:03 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]) (using TLSv1) by na3sys009aob105.postini.com ([74.125.148.12]) with SMTP ID DSNKTlIUeaP6LQJovi92ZkZEzQ3WI5SU1PKh@postini.com; Mon, 22 Aug 2011 01:34:02 PDT Received: by mail-bw0-f41.google.com with SMTP id zt4so4094445bkb.0 for ; Mon, 22 Aug 2011 01:34:01 -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-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@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:34:04 +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++];