Message ID | 1308602657-28783-1-git-send-email-loic.minier@linaro.org |
---|---|
State | Accepted |
Commit | 17e8c4e1ebf139743e3830439fa65fd906af4a43 |
Headers | show
Return-Path: <patch+caf_=linaro-patchwork=canonical.com@linaro.org> X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 21C6524060 for <patchwork@peony.canonical.com>; Wed, 29 Jun 2011 16:30:32 +0000 (UTC) Received: from mail-qy0-f180.google.com (mail-qy0-f180.google.com [209.85.216.180]) by fiordland.canonical.com (Postfix) with ESMTP id D086FA185EC for <linaro-patchwork@canonical.com>; Wed, 29 Jun 2011 16:30:31 +0000 (UTC) Received: by qyk30 with SMTP id 30so983518qyk.11 for <linaro-patchwork@canonical.com>; Wed, 29 Jun 2011 09:30:31 -0700 (PDT) Received: by 10.229.1.140 with SMTP id 12mr758494qcf.118.1309365031160; Wed, 29 Jun 2011 09:30:31 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.48.135 with SMTP id r7cs45618qcf; Wed, 29 Jun 2011 09:30:30 -0700 (PDT) Received: by 10.204.130.16 with SMTP id q16mr925262bks.192.1309365028467; Wed, 29 Jun 2011 09:30:28 -0700 (PDT) Received: from pig2.dooz.org (pig2.dooz.org [88.191.118.219]) by mx.google.com with ESMTPS id l28si1908354fam.169.2011.06.29.09.30.25 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 29 Jun 2011 09:30:27 -0700 (PDT) Received-SPF: neutral (google.com: 88.191.118.219 is neither permitted nor denied by domain of lool@dooz.org) client-ip=88.191.118.219; Authentication-Results: mx.google.com; spf=neutral (google.com: 88.191.118.219 is neither permitted nor denied by domain of lool@dooz.org) smtp.mail=lool@dooz.org Received: from bee.dooz.org (unknown [83.141.95.158]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bee.dooz.org", Issuer "CA Cert Signing Authority" (verified OK)) by pig2.dooz.org (Postfix) with ESMTPS id 6EF9FC00C0 for <patches@linaro.org>; Wed, 29 Jun 2011 16:30:25 +0000 (UTC) Received: by bee.dooz.org (Postfix, from userid 1000) id 9BF2F1112; Wed, 29 Jun 2011 18:30:24 +0200 (CEST) Resent-From: =?iso-8859-1?Q?Lo=EFc?= Minier <lool@dooz.org> Resent-Date: Wed, 29 Jun 2011 18:30:24 +0200 Resent-Message-ID: <20110629163024.GA3050@bee.dooz.org> Resent-To: patches@linaro.org X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-26) on pig.zood.org X-Spam-Level: X-Spam-Status: No, score=-102.6 required=3.0 tests=BAYES_00, USER_IN_WHITELIST autolearn=disabled version=3.1.4 X-Original-To: lool@dooz.org Received: from mail-yw0-f51.google.com (mail-yw0-f51.google.com [209.85.213.51]) by pig.zood.org (Postfix) with ESMTP id DC4D84C0C4 for <lool@dooz.org>; Mon, 20 Jun 2011 22:44:36 +0200 (CEST) Received: by ywm39 with SMTP id 39so2405363ywm.24 for <lool@dooz.org>; Mon, 20 Jun 2011 13:44:36 -0700 (PDT) Received: by 10.236.190.199 with SMTP id e47mr8380469yhn.182.1308602675706; Mon, 20 Jun 2011 13:44:35 -0700 (PDT) X-Forwarded-To: lool@dooz.org X-X-Forwarded-For: loic.minier@linaro.org lool@dooz.org Received: by 10.236.203.233 with SMTP id f69cs96701yho; Mon, 20 Jun 2011 13:44:35 -0700 (PDT) Received: by 10.216.63.17 with SMTP id z17mr4785612wec.98.1308602673978; Mon, 20 Jun 2011 13:44:33 -0700 (PDT) Received: from pig2.dooz.org (pig2.dooz.org [88.191.118.219]) by mx.google.com with ESMTPS id u43si11114339wec.121.2011.06.20.13.44.32 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Jun 2011 13:44:32 -0700 (PDT) Received-SPF: pass (google.com: domain of lool@bee.dooz.org designates 88.191.118.219 as permitted sender) client-ip=88.191.118.219; Received: from bee.dooz.org (serris.dooz.org [88.166.229.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bee.dooz.org", Issuer "CA Cert Signing Authority" (verified OK)) by pig2.dooz.org (Postfix) with ESMTPS id E3A28C01EA; Mon, 20 Jun 2011 20:44:32 +0000 (UTC) Received: by bee.dooz.org (Postfix, from userid 1000) id DFC22130E; Mon, 20 Jun 2011 22:44:27 +0200 (CEST) From: =?UTF-8?q?Lo=C3=AFc=20Minier?= <loic.minier@linaro.org> To: Russell King <linux@arm.linux.org.uk> Cc: =?UTF-8?q?Lo=C3=AFc=20Minier?= <loic.minier@linaro.org>, linux-fbdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Paul Mundt <lethal@linux-sh.org> Subject: [PATCH] ARM: amba: Link fb device to its parent Date: Mon, 20 Jun 2011 22:44:17 +0200 Message-Id: <1308602657-28783-1-git-send-email-loic.minier@linaro.org> X-Mailer: git-send-email 1.7.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit |
diff --git a/drivers/video/amba-clcd.c b/drivers/video/amba-clcd.c index 5fc983c..cf03ad0 100644 --- a/drivers/video/amba-clcd.c +++ b/drivers/video/amba-clcd.c @@ -447,6 +447,8 @@ static int clcdfb_register(struct clcd_fb *fb) goto out; } + fb->fb.device = &fb->dev->dev; + fb->fb.fix.mmio_start = fb->dev->res.start; fb->fb.fix.mmio_len = resource_size(&fb->dev->res);
Some pieces of userspace like debian-installer expect to find the fb0 driver name by readlink-ing /sys/class/graphics/fb0/device/driver but this was broken with amba-clcd as it sets up fb_info manually and missed the .device parent pointer. Signed-off-by: Loïc Minier <loic.minier@linaro.org> Cc: Russell King <linux@arm.linux.org.uk> Cc: Paul Mundt <lethal@linux-sh.org> --- drivers/video/amba-clcd.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)