From patchwork Mon Oct 20 09:04:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5103541 Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AD0439FAC5 for ; Mon, 20 Oct 2014 09:06:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E627E200E9 for ; Mon, 20 Oct 2014 09:06:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 576CD2015E for ; Mon, 20 Oct 2014 09:06:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753397AbaJTJFg (ORCPT ); Mon, 20 Oct 2014 05:05:36 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:43755 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753114AbaJTJF1 (ORCPT ); Mon, 20 Oct 2014 05:05:27 -0400 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 <0NDQ00B0BK1QRAA0@mailout3.w1.samsung.com>; Mon, 20 Oct 2014 10:08:14 +0100 (BST) X-AuditID: cbfec7f5-b7f956d000005ed7-5f-5444d052d222 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 05.1D.24279.250D4445; Mon, 20 Oct 2014 10:05:22 +0100 (BST) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NDQ008ZEJWR1P90@eusync4.samsung.com>; Mon, 20 Oct 2014 10:05:22 +0100 (BST) 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-doc@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Lars-Peter Clausen , Michal Simek Cc: Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz Subject: [PATCH v8 5/5] amba: Remove unused amba_pclk_enable/disable macros Date: Mon, 20 Oct 2014 11:04:48 +0200 Message-id: <1413795888-18559-6-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1413795888-18559-1-git-send-email-k.kozlowski@samsung.com> References: <1413795888-18559-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrDLMWRmVeSWpSXmKPExsVy+t/xa7pBF1xCDHacNLbYOGM9q8WTA+2M FtOnXmC0WD31L6vF6xeGFmeb3rBbLJk8n9Vi1pS9TBYL25awWFzeNYfN4nPvEUaL25d5LdYe uctu8e5lhMXdU0fZLM6cvsRqMeH3BTaL42vDLV727WdxEPZoae5h81i85yWTx51re4Csvsms HkveHGL12HK1ncVj9t0fjB59W1YxeqxY/Z3d4/MmOY+9n3+zBHBHcdmkpOZklqUW6dslcGU8 2yNZcJe9omv3f5YGxjNsXYycHBICJhI3Gm8wQthiEhfurQeLCwksZZTY3ibcxcgFZPcxScz/ 9JoFJMEmYCyxefkSNpCEiMBxFonFPRfAHGaBKYwSzZOWMoFUCQt4S1w80gc2lkVAVeL67btg 3bwC7hLvdi2DWi0ncfLYZFYQm1PAQ2J6y2NGiNXuEt0LVzFNYORdwMiwilE0tTS5oDgpPddI rzgxt7g0L10vOT93EyMkBr7uYFx6zOoQowAHoxIP7w4zlxAh1sSy4srcQ4wSHMxKIrxMR4FC vCmJlVWpRfnxRaU5qcWHGJk4OKUaGNMbvW/8m7bY8+OdWX9UZsjeL+81nnHfYFZFusgSOVfX 6868qZv1FLjFDe5OLxT7sTC5/ILGl1cLLvrXu1v+qsn+26Aw78s0pXxRsXXzesOXJYbc6C68 ccPY7n3wgZLlSy/13N9soVHwOfue63/WfRbzG1YzhKTP0FynJVmbsNVjTU71ybRdOUosxRmJ hlrMRcWJAGog6oBfAgAA Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-8.3 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);