From patchwork Thu Oct 9 03:27:45 2014
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Xiubo Li
X-Patchwork-Id: 5056241
Return-Path:
X-Original-To: patchwork-linux-spi@patchwork.kernel.org
Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org
Received: from mail.kernel.org (mail.kernel.org [198.145.19.201])
by patchwork2.web.kernel.org (Postfix) with ESMTP id D6128C11AB
for ;
Thu, 9 Oct 2014 03:44:07 +0000 (UTC)
Received: from mail.kernel.org (localhost [127.0.0.1])
by mail.kernel.org (Postfix) with ESMTP id 0EB2B20155
for ;
Thu, 9 Oct 2014 03:44:07 +0000 (UTC)
Received: from vger.kernel.org (vger.kernel.org [209.132.180.67])
by mail.kernel.org (Postfix) with ESMTP id 2E4D820109
for ;
Thu, 9 Oct 2014 03:44:06 +0000 (UTC)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S1752961AbaJIDoF (ORCPT
);
Wed, 8 Oct 2014 23:44:05 -0400
Received: from mail-bn1on0136.outbound.protection.outlook.com
([157.56.110.136]:24832
"EHLO na01-bn1-obe.outbound.protection.outlook.com"
rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP
id S1751829AbaJIDoF (ORCPT );
Wed, 8 Oct 2014 23:44:05 -0400
X-Greylist: delayed 946 seconds by postgrey-1.27 at vger.kernel.org;
Wed, 08 Oct 2014 23:44:05 EDT
Received: from BN3PR0301CA0050.namprd03.prod.outlook.com (25.160.152.146) by
DM2PR0301MB0624.namprd03.prod.outlook.com (25.160.95.28) with
Microsoft SMTP
Server (TLS) id 15.0.1049.19; Thu, 9 Oct 2014 03:28:15 +0000
Received: from BN1AFFO11FD011.protection.gbl (2a01:111:f400:7c10::136) by
BN3PR0301CA0050.outlook.office365.com (2a01:111:e400:401e::18) with
Microsoft SMTP Server (TLS) id 15.0.1049.19 via Frontend Transport;
Thu, 9 Oct 2014 03:28:15 +0000
Received: from az84smr01.freescale.net (192.88.158.2) by
BN1AFFO11FD011.mail.protection.outlook.com (10.58.52.71) with
Microsoft SMTP Server (TLS) id 15.0.1039.16 via Frontend Transport;
Thu, 9 Oct 2014 03:28:14 +0000
Received: from titan.ap.freescale.net ([10.192.208.233])
by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id
s993SBMF010677; Wed, 8 Oct 2014 20:28:12 -0700
From: Xiubo Li
To:
CC: , Xiubo Li
Subject: [PATCH] spi: fsl-dspi: remove useless code for dspi driver.
Date: Thu, 9 Oct 2014 11:27:45 +0800
Message-ID: <1412825265-10221-1-git-send-email-Li.Xiubo@freescale.com>
X-Mailer: git-send-email 2.1.0.27.g96db324
X-EOPAttributedMessage: 0
X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI;
EFV:NLI; SFV:NSPM;
SFS:(10019020)(6009001)(199003)(189002)(77156001)(110136001)(81156004)(21056001)(106466001)(64706001)(20776003)(85852003)(104166001)(104016003)(44976005)(89996001)(19580405001)(19580395003)(6806004)(76482002)(107046002)(102836001)(87936001)(69596002)(86362001)(87286001)(88136002)(229853001)(2351001)(68736004)(47776003)(85306004)(84676001)(92726001)(92566001)(31966008)(93916002)(99396003)(120916001)(48376002)(50466002)(50226001)(80022003)(50986999)(36756003)(4396001)(26826002)(105606002)(95666004)(62966002)(97736003)(46102003);
DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR0301MB0624;
H:az84smr01.freescale.net; FPR:; MLV:ovrnspm;
PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en;
MIME-Version: 1.0
X-Microsoft-Antispam: UriScan:;
X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0624;
X-Forefront-PRVS: 0359162B6D
Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not
designate 192.88.158.2 as permitted sender)
receiver=protection.outlook.com;
client-ip=192.88.158.2; helo=az84smr01.freescale.net;
Authentication-Results: spf=fail (sender IP is 192.88.158.2)
smtp.mailfrom=Li.Xiubo@freescale.com;
X-OriginatorOrg: freescale.com
Sender: linux-spi-owner@vger.kernel.org
Precedence: bulk
List-ID:
X-Mailing-List: linux-spi@vger.kernel.org
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI,
T_RP_MATCHES_RCVD,
UNPARSEABLE_RELAY autolearn=ham version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org
X-Virus-Scanned: ClamAV using ClamSMTP
Since we are using regmap framework's internal locks, so the
lock_arg for dspi_regmap_config is redundant here.
This patch just remove it, and then the dspi_regmap_config could
be const type.
Signed-off-by: Xiubo Li
---
drivers/spi/spi-fsl-dspi.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c
index 4482160..12dc995 100644
--- a/drivers/spi/spi-fsl-dspi.c
+++ b/drivers/spi/spi-fsl-dspi.c
@@ -438,7 +438,7 @@ static int dspi_resume(struct device *dev)
static SIMPLE_DEV_PM_OPS(dspi_pm, dspi_suspend, dspi_resume);
-static struct regmap_config dspi_regmap_config = {
+static const struct regmap_config dspi_regmap_config = {
.reg_bits = 32,
.val_bits = 32,
.reg_stride = 4,
@@ -492,7 +492,6 @@ static int dspi_probe(struct platform_device *pdev)
goto out_master_put;
}
- dspi_regmap_config.lock_arg = dspi;
dspi->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "dspi", base,
&dspi_regmap_config);
if (IS_ERR(dspi->regmap)) {