From patchwork Mon May 6 18:05:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 241746 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 7B67D2C0106 for ; Tue, 7 May 2013 04:06:33 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754294Ab3EFSGb (ORCPT ); Mon, 6 May 2013 14:06:31 -0400 Received: from co9ehsobe003.messaging.microsoft.com ([207.46.163.26]:14653 "EHLO co9outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753336Ab3EFSG1 (ORCPT ); Mon, 6 May 2013 14:06:27 -0400 Received: from mail100-co9-R.bigfish.com (10.236.132.246) by CO9EHSOBE040.bigfish.com (10.236.130.103) with Microsoft SMTP Server id 14.1.225.23; Mon, 6 May 2013 18:06:26 +0000 Received: from mail100-co9 (localhost [127.0.0.1]) by mail100-co9-R.bigfish.com (Postfix) with ESMTP id BF659840147; Mon, 6 May 2013 18:06:26 +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 mail100-co9 (localhost.localdomain [127.0.0.1]) by mail100-co9 (MessageSwitch) id 1367863584829399_11670; Mon, 6 May 2013 18:06:24 +0000 (UTC) Received: from CO9EHSMHS030.bigfish.com (unknown [10.236.132.236]) by mail100-co9.bigfish.com (Postfix) with ESMTP id C81AE78006F; Mon, 6 May 2013 18:06:24 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CO9EHSMHS030.bigfish.com (10.236.130.40) with Microsoft SMTP Server (TLS) id 14.1.225.23; Mon, 6 May 2013 18:06:24 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server (TLS) id 14.2.328.11; Mon, 6 May 2013 18:06:23 +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 r46I6Hv8019624; Mon, 6 May 2013 11:06:22 -0700 From: Fabio Estevam To: CC: , , Fabio Estevam , Wolfram Sang , Subject: [PATCH 03/13] i2c: i2c-mxs: Let device core handle pinctrl Date: Mon, 6 May 2013 15:05:51 -0300 Message-ID: <1367863561-11534-3-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-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@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: Wolfram Sang Cc: Signed-off-by: Fabio Estevam --- drivers/i2c/busses/i2c-mxs.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c index 120f246..7f3dced 100644 --- a/drivers/i2c/busses/i2c-mxs.c +++ b/drivers/i2c/busses/i2c-mxs.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include @@ -604,16 +603,11 @@ static int mxs_i2c_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct mxs_i2c_dev *i2c; struct i2c_adapter *adap; - struct pinctrl *pinctrl; struct resource *res; resource_size_t res_size; int err, irq, dmairq; dma_cap_mask_t mask; - pinctrl = devm_pinctrl_get_select_default(dev); - if (IS_ERR(pinctrl)) - return PTR_ERR(pinctrl); - i2c = devm_kzalloc(dev, sizeof(struct mxs_i2c_dev), GFP_KERNEL); if (!i2c) return -ENOMEM;