From patchwork Mon Jan 7 05:05:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Afzal Mohammed X-Patchwork-Id: 1939081 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 68B2940B27 for ; Mon, 7 Jan 2013 05:05:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751808Ab3AGFFT (ORCPT ); Mon, 7 Jan 2013 00:05:19 -0500 Received: from devils.ext.ti.com ([198.47.26.153]:60479 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751564Ab3AGFFP (ORCPT ); Mon, 7 Jan 2013 00:05:15 -0500 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id r07556Rt014233; Sun, 6 Jan 2013 23:05:07 -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 r07555Le022672; Mon, 7 Jan 2013 10:35:05 +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; Mon, 7 Jan 2013 10:35:05 +0530 Received: from ucmsshproxy.india.ext.ti.com (dbdp20.itg.ti.com [172.24.170.38]) by dbdp32.itg.ti.com (8.13.8/8.13.8) with SMTP id r07555Kc027337; Mon, 7 Jan 2013 10:35:05 +0530 Received: from symphony.india.ext.ti.com (unknown [192.168.247.13]) by ucmsshproxy.india.ext.ti.com (Postfix) with ESMTP id 5EB79158006; Mon, 7 Jan 2013 10:35:05 +0530 (IST) Received: from ubuntu-psp-linux.india.ext.ti.com (ubuntu-psp-linux [192.168.247.46]) by symphony.india.ext.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id r07550R24252; Mon, 7 Jan 2013 10:35:00 +0530 (IST) From: Afzal Mohammed To: Florian Tobias Schandinat , Tomi Valkeinen , Grant Likely , Rob Herring , , , , , , Subject: [PATCH v2 08/10] video: da8xx-fb: store struct device * Date: Mon, 7 Jan 2013 10:35:55 +0530 Message-ID: X-Mailer: git-send-email 1.7.9.5 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) {