From patchwork Wed Jul 6 17:08:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Doan X-Patchwork-Id: 950222 X-Patchwork-Delegate: tomi.valkeinen@nokia.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p66HAfta006615 for ; Wed, 6 Jul 2011 17:10:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752630Ab1GFRK2 (ORCPT ); Wed, 6 Jul 2011 13:10:28 -0400 Received: from mail-gx0-f174.google.com ([209.85.161.174]:50507 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751203Ab1GFRK1 (ORCPT ); Wed, 6 Jul 2011 13:10:27 -0400 Received: by gxk21 with SMTP id 21so66126gxk.19 for ; Wed, 06 Jul 2011 10:10:26 -0700 (PDT) Received: by 10.150.67.21 with SMTP id p21mr27168yba.357.1309972226487; Wed, 06 Jul 2011 10:10:26 -0700 (PDT) Received: from localhost.localdomain ([70.114.140.74]) by mx.google.com with ESMTPS id l10sm2539859ybf.4.2011.07.06.10.10.25 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 06 Jul 2011 10:10:25 -0700 (PDT) From: Andy Doan To: linux-fbdev@vger.kernel.org, linux-omap@vger.kernel.org Cc: Tomi Valkeinen , Andy Doan Subject: [PATCH] OMAPFB: make debug message more useful Date: Wed, 6 Jul 2011 12:08:29 -0500 Message-Id: <1309972109-23778-1-git-send-email-andy.doan@linaro.org> X-Mailer: git-send-email 1.7.4.1 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 (demeter2.kernel.org [140.211.167.43]); Wed, 06 Jul 2011 17:10:41 +0000 (UTC) Make the debug message useful by printing the name of the device that no associated driver could be found for. Signed-off-by: Andy Doan --- drivers/video/omap2/omapfb/omapfb-main.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index 602b71a..e5a64b3 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c @@ -2373,7 +2373,8 @@ static int omapfb_probe(struct platform_device *pdev) omap_dss_get_device(dssdev); if (!dssdev->driver) { - dev_err(&pdev->dev, "no driver for display\n"); + dev_err(&pdev->dev, "no driver for display: %s\n", + dssdev->name); r = -ENODEV; }