From patchwork Tue Nov 4 12:52:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5227441 Return-Path: X-Original-To: patchwork-dmaengine@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 2227BC11AC for ; Tue, 4 Nov 2014 12:54:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4FB5F2015A for ; Tue, 4 Nov 2014 12:54:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B1BF820160 for ; Tue, 4 Nov 2014 12:53:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753737AbaKDMxm (ORCPT ); Tue, 4 Nov 2014 07:53:42 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:46565 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753571AbaKDMxN (ORCPT ); Tue, 4 Nov 2014 07:53:13 -0500 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NEI00GNAMLAK7A0@mailout3.w1.samsung.com>; Tue, 04 Nov 2014 12:55:58 +0000 (GMT) X-AuditID: cbfec7f5-b7f956d000005ed7-dd-5458cc322e75 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id FC.B2.24279.23CC8545; Tue, 04 Nov 2014 12:53:06 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NEI00F5DMGAFJ30@eusync3.samsung.com>; Tue, 04 Nov 2014 12:53:06 +0000 (GMT) From: Krzysztof Kozlowski To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Jonathan Corbet , Russell King , Dan Williams , Vinod Koul , Ulf Hansson , Alan Stern , Krzysztof Kozlowski , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Lars-Peter Clausen , Michal Simek Cc: Kevin Hilman , Laurent Pinchart , Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz Subject: [PATCH v9 4/4] amba: Remove unused amba_pclk_enable/disable macros Date: Tue, 04 Nov 2014 13:52:50 +0100 Message-id: <1415105570-7871-5-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1415105570-7871-1-git-send-email-k.kozlowski@samsung.com> References: <1415105570-7871-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDLMWRmVeSWpSXmKPExsVy+t/xq7pGZyJCDL7/5LbYOGM9q8WTA+2M FtOnXmC0WD31L6vF6xeGFk83P2ayONv0ht1iyeT5rBadE5ewW8yaspfJ4vKuOWwWn3uPMFrc vsxrsfbIXXaLdy8jLO6eOspmceb0JVaLCb8vsFkcXxtu8bJvP4uDiEdLcw+bx+yOmawei/e8 ZPLYtKqTzePOtT1sHov7JrN6LHlziNVjy9V2Fo/Zd38wevRtWcXosWL1d3aPz5vkPPZ+/s0S wBvFZZOSmpNZllqkb5fAlfFsj2TBXfaKrt3/WRoYz7B1MXJySAiYSLQ1/ISyxSQu3FsPZHNx CAksZZT4ubuFCcLpY5K48XAPI0gVm4CxxOblS8CqRARWsUi82nMdzGEW+MgocXP1RmaQKmEB b4mO2QfBOlgEVCV+zV8HtoNXwE3i/NtWdoh9chInj01mBbE5Bdwltm7cB1YjBFTz5tEbtgmM vAsYGVYxiqaWJhcUJ6XnGukVJ+YWl+al6yXn525ihMTI1x2MS49ZHWIU4GBU4uFdER8RIsSa WFZcmXuIUYKDWUmEd9tpoBBvSmJlVWpRfnxRaU5q8SFGJg5OqQZGrowL7x+wx5ZZSnvr6PNx dN4z2bS8vDTw0u9NXXc2qN5NKM4LaJafqL2j7d153jteqR0VLxY3HTu4SWiHzZWLbmJzeTel 35m4JF6kV3wV7/6OG4IRq06fdWGIDPt9bpdjdNiOuVweq3wmFOpEsml4XZySFTtzd9KP1o19 316x3Ltyf2bs6noeJZbijERDLeai4kQAibBeIG8CAAA= Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Remove the amba_pclk_enable and amba_pclk_disable macros because they are not used by the drivers. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Ulf Hansson --- include/linux/amba/bus.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/linux/amba/bus.h b/include/linux/amba/bus.h index c4bae79851fb..566adf0e0412 100644 --- a/include/linux/amba/bus.h +++ b/include/linux/amba/bus.h @@ -92,12 +92,6 @@ struct amba_device *amba_find_device(const char *, struct device *, unsigned int int amba_request_regions(struct amba_device *, const char *); void amba_release_regions(struct amba_device *); -#define amba_pclk_enable(d) \ - (IS_ERR((d)->pclk) ? 0 : clk_enable((d)->pclk)) - -#define amba_pclk_disable(d) \ - do { if (!IS_ERR((d)->pclk)) clk_disable((d)->pclk); } while (0) - static inline int amba_pclk_prepare(struct amba_device *dev) { return clk_prepare(dev->pclk);