From patchwork Fri Apr 24 10:54:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: haikun wang X-Patchwork-Id: 6269201 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7906D9F389 for ; Fri, 24 Apr 2015 11:30:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9BE3D20256 for ; Fri, 24 Apr 2015 11:30:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D00E82022A for ; Fri, 24 Apr 2015 11:30:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966656AbbDXLa4 (ORCPT ); Fri, 24 Apr 2015 07:30:56 -0400 Received: from mail-by2on0110.outbound.protection.outlook.com ([207.46.100.110]:51576 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S966383AbbDXLaz (ORCPT ); Fri, 24 Apr 2015 07:30:55 -0400 X-Greylist: delayed 1041 seconds by postgrey-1.27 at vger.kernel.org; Fri, 24 Apr 2015 07:30:55 EDT Received: from DM2PR0301MB0623.namprd03.prod.outlook.com (25.160.95.27) by DM2PR0301MB0861.namprd03.prod.outlook.com (25.160.215.147) with Microsoft SMTP Server (TLS) id 15.1.136.25; Fri, 24 Apr 2015 10:58:15 +0000 Received: from BY2PR03CA049.namprd03.prod.outlook.com (10.141.249.22) by DM2PR0301MB0623.namprd03.prod.outlook.com (25.160.95.27) with Microsoft SMTP Server (TLS) id 15.1.148.15; Fri, 24 Apr 2015 10:58:15 +0000 Received: from BL2FFO11FD053.protection.gbl (2a01:111:f400:7c09::115) by BY2PR03CA049.outlook.office365.com (2a01:111:e400:2c5d::22) with Microsoft SMTP Server (TLS) id 15.1.148.16 via Frontend Transport; Fri, 24 Apr 2015 10:58:14 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; 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; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD053.mail.protection.outlook.com (10.173.161.181) with Microsoft SMTP Server (TLS) id 15.1.148.11 via Frontend Transport; Fri, 24 Apr 2015 10:58:13 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t3OAwAur026293; Fri, 24 Apr 2015 03:58:11 -0700 From: Haikun Wang To: CC: , Haikun Wang Subject: [PATCH v1] spi: spi-fsl-dspi: remove clk reference when regmap_mmio initialize Date: Fri, 24 Apr 2015 18:54:47 +0800 Message-ID: <1429872887-14438-1-git-send-email-haikun.wang@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:NLI; EFV:NLI; BMV:1; SFV:NSPM; SFS:(10019020)(6009001)(339900001)(199003)(189002)(92566002)(6806004)(86362001)(62966003)(77156002)(2351001)(50466002)(110136001)(19580395003)(230783001)(19580405001)(50226001)(50986999)(104016003)(36756003)(33646002)(48376002)(85426001)(77096005)(87936001)(106466001)(105606002)(229853001)(46102003)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR0301MB0623; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0301MB0623; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0301MB0861; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(5002010)(3002001); SRVR:DM2PR0301MB0623; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0301MB0623; X-Forefront-PRVS: 05568D1FF7 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2015 10:58:13.7012 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB0623 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 It is unnecessary for DSPI to enable/disable clk when access DSPI register. And it will reduce efficiency. Signed-off-by: Haikun Wang --- drivers/spi/spi-fsl-dspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 5fe54cd..ed0475d 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c @@ -566,7 +566,7 @@ static int dspi_probe(struct platform_device *pdev) goto out_master_put; } - dspi->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "dspi", base, + dspi->regmap = devm_regmap_init_mmio_clk(&pdev->dev, NULL, base, &dspi_regmap_config); if (IS_ERR(dspi->regmap)) { dev_err(&pdev->dev, "failed to init regmap: %ld\n",