From patchwork Fri Dec 7 11:44:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Afzal Mohammed X-Patchwork-Id: 1850311 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id C04F1DF2EE for ; Fri, 7 Dec 2012 11:45:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756154Ab2LGLo1 (ORCPT ); Fri, 7 Dec 2012 06:44:27 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:58348 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756080Ab2LGLoY (ORCPT ); Fri, 7 Dec 2012 06:44:24 -0500 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id qB7BiKiC023220; Fri, 7 Dec 2012 05:44:21 -0600 Received: from DBDE71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id qB7BiKu0011979; Fri, 7 Dec 2012 17:14:20 +0530 (IST) Received: from dbdp32.itg.ti.com (172.24.170.251) by DBDE71.ent.ti.com (172.24.170.149) with Microsoft SMTP Server id 14.1.323.3; Fri, 7 Dec 2012 17:14:20 +0530 Received: from psplinux063.india.ti.com (dbdp20.itg.ti.com [172.24.170.38]) by dbdp32.itg.ti.com (8.13.8/8.13.8) with ESMTP id qB7BiJee021981; Fri, 7 Dec 2012 17:14:19 +0530 From: Afzal Mohammed To: Florian Tobias Schandinat , Tomi Valkeinen CC: Vaibhav Hiremath , Sekhar Nori , , , Afzal Mohammed Subject: [PATCH 08/10] video: da8xx-fb: store struct device * Date: Fri, 7 Dec 2012 17:14:19 +0530 Message-ID: <3d63942fbac547cec9620bc30dcf60b1c48f9eb0.1354874432.git.afzal@ti.com> X-Mailer: git-send-email 1.7.12 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org store struct device pointer so that dev_dbg/err can be used outside of probe. Signed-off-by: Afzal Mohammed --- drivers/video/da8xx-fb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 19ee560..663b3c5 100644 --- a/drivers/video/da8xx-fb.c +++ b/drivers/video/da8xx-fb.c @@ -154,6 +154,7 @@ static inline void lcdc_write(unsigned int val, unsigned int addr) } struct da8xx_fb_par { + struct device *dev; resource_size_t p_palette_base; unsigned char *v_palette_base; dma_addr_t vram_phys; @@ -1295,6 +1296,7 @@ static int __devinit fb_probe(struct platform_device *device) } par = da8xx_fb_info->par; + par->dev = &device->dev; par->lcdc_clk = fb_clk; par->lcd_fck_rate = clk_get_rate(fb_clk); if (fb_pdata->panel_power_ctrl) {