From patchwork Mon Jun 20 20:44:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Lo=C3=AFc_Minier?= X-Patchwork-Id: 898582 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 p5KKqOoY028951 for ; Mon, 20 Jun 2011 20:52:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755319Ab1FTUwX (ORCPT ); Mon, 20 Jun 2011 16:52:23 -0400 Received: from pig2.dooz.org ([88.191.118.219]:51052 "EHLO pig2.dooz.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755008Ab1FTUwW (ORCPT ); Mon, 20 Jun 2011 16:52:22 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 20 Jun 2011 20:52:24 +0000 (UTC) X-Greylist: delayed 469 seconds by postgrey-1.27 at vger.kernel.org; Mon, 20 Jun 2011 16:52:22 EDT 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?= To: Russell King Cc: =?UTF-8?q?Lo=C3=AFc=20Minier?= , linux-fbdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Paul Mundt 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 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org 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 Cc: Russell King Cc: Paul Mundt Acked-by: Russell King --- drivers/video/amba-clcd.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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);