From patchwork Mon May 6 18:05:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 2524841 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 82322DFE75 for ; Mon, 6 May 2013 18:06:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755091Ab3EFSGr (ORCPT ); Mon, 6 May 2013 14:06:47 -0400 Received: from va3ehsobe003.messaging.microsoft.com ([216.32.180.13]:27782 "EHLO va3outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754502Ab3EFSGp (ORCPT ); Mon, 6 May 2013 14:06:45 -0400 Received: from mail52-va3-R.bigfish.com (10.7.14.231) by VA3EHSOBE005.bigfish.com (10.7.40.25) with Microsoft SMTP Server id 14.1.225.23; Mon, 6 May 2013 18:06:44 +0000 Received: from mail52-va3 (localhost [127.0.0.1]) by mail52-va3-R.bigfish.com (Postfix) with ESMTP id 4EEFE1C01D8; Mon, 6 May 2013 18:06:44 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 9 X-BigFish: VS9(z329eqzzz1f42h1fc6h1ee6h1de0h1fdah1202h1e76h1d1ah1d2ahzz8275bh8275dhz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1d0ch1d2eh1d3fh1155h) Received: from mail52-va3 (localhost.localdomain [127.0.0.1]) by mail52-va3 (MessageSwitch) id 1367863603308842_24984; Mon, 6 May 2013 18:06:43 +0000 (UTC) Received: from VA3EHSMHS018.bigfish.com (unknown [10.7.14.239]) by mail52-va3.bigfish.com (Postfix) with ESMTP id 3265548004C; Mon, 6 May 2013 18:06:43 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by VA3EHSMHS018.bigfish.com (10.7.99.28) with Microsoft SMTP Server (TLS) id 14.1.225.23; Mon, 6 May 2013 18:06:42 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-004.039d.mgd.msft.net (10.84.1.14) with Microsoft SMTP Server (TLS) id 14.2.328.11; Mon, 6 May 2013 18:06:43 +0000 Received: from fabio-Latitude-E6410.am.freescale.net ([10.29.244.102]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id r46I6HvG019624; Mon, 6 May 2013 11:06:39 -0700 From: Fabio Estevam To: CC: , , Fabio Estevam , Florian Tobias Schandinat , Subject: [PATCH 11/13] video: mxsfb: Let device core handle pinctrl Date: Mon, 6 May 2013 15:05:59 -0300 Message-ID: <1367863561-11534-11-git-send-email-fabio.estevam@freescale.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367863561-11534-1-git-send-email-fabio.estevam@freescale.com> References: <1367863561-11534-1-git-send-email-fabio.estevam@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Since commit ab78029 (drivers/pinctrl: grab default handles from device core), we can rely on device core for handling pinctrl. So remove devm_pinctrl_get_select_default() from the driver. Cc: Florian Tobias Schandinat Cc: Signed-off-by: Fabio Estevam --- drivers/video/mxsfb.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 45169cb..a27f028 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -47,7 +47,6 @@ #include #include #include -#include #include #define REG_SET 4 @@ -783,7 +782,6 @@ static int mxsfb_probe(struct platform_device *pdev) struct mxsfb_info *host; struct fb_info *fb_info; struct fb_modelist *modelist; - struct pinctrl *pinctrl; int panel_enable; enum of_gpio_flags flags; int i, ret; @@ -826,12 +824,6 @@ static int mxsfb_probe(struct platform_device *pdev) host->devdata = &mxsfb_devdata[pdev->id_entry->driver_data]; - pinctrl = devm_pinctrl_get_select_default(&pdev->dev); - if (IS_ERR(pinctrl)) { - ret = PTR_ERR(pinctrl); - goto error_getpin; - } - host->clk = clk_get(&host->pdev->dev, NULL); if (IS_ERR(host->clk)) { ret = PTR_ERR(host->clk); @@ -906,7 +898,6 @@ error_pseudo_pallette: error_panel_enable: clk_put(host->clk); error_getclock: -error_getpin: iounmap(host->base); error_ioremap: framebuffer_release(fb_info);