From patchwork Thu Nov 6 08:36: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: 5240091 Return-Path: X-Original-To: patchwork-linux-pm@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 DA3D29FD45 for ; Thu, 6 Nov 2014 08:37:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 125A520117 for ; Thu, 6 Nov 2014 08:37:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D23C2200DB for ; Thu, 6 Nov 2014 08:37:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752132AbaKFIhM (ORCPT ); Thu, 6 Nov 2014 03:37:12 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:64723 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751981AbaKFIhG (ORCPT ); Thu, 6 Nov 2014 03:37:06 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) 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 <0NEM0051002J85A0@mailout3.w1.samsung.com>; Thu, 06 Nov 2014 08:39:55 +0000 (GMT) X-AuditID: cbfec7f4-b7f6c6d00000120b-c3-545b332f28a5 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 4E.CA.04619.F233B545; Thu, 06 Nov 2014 08:37:03 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NEL00IEEZXIOS10@eusync2.samsung.com>; Thu, 06 Nov 2014 08:37:03 +0000 (GMT) From: Krzysztof Kozlowski To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Russell King , Dan Williams , Vinod Koul , Ulf Hansson , Alan Stern , 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 , Krzysztof Kozlowski Subject: [PATCH v10 5/5] amba: Remove unused amba_pclk_enable/disable macros Date: Thu, 06 Nov 2014 09:36:50 +0100 Message-id: <1415263010-7992-6-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1415263010-7992-1-git-send-email-k.kozlowski@samsung.com> References: <1415263010-7992-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrALMWRmVeSWpSXmKPExsVy+t/xK7r6xtEhBp37+Sw2zljPajF96gVG i9VT/7JavH5haPF082Mmi7NNb9gtlkyez2rROXEJu8WsKXuZLC7vmsNm8bn3CKPF7cu8FmuP 3GW3ePcywuLuqaNsFmdOX2K1mPD7ApvF8bXhFi/79rM4CHu0NPeweczumMnqsXjPSyaPTas6 2TzuXNvD5rHkzSFWjy1X21k8Zt/9wejRt2UVo8eK1d/ZPT5vkvPY+/k3SwBPFJdNSmpOZllq kb5dAlfGsz2SBXfZK7p2/2dpYDzD1sXIySEhYCJx9dYjKFtM4sK99UA2F4eQwFJGiaf3f7ND OH1MEssvbmMGqWITMJbYvHwJWJWIwHVmie7H/SwgCWaBRUwSTVMVQWxhAR+J1esngjWwCKhK bL/1C8jm4OAVcJNY2iwFsU1O4uSxyawgNqeAu8SvJR+YQGwhoJL2r7PZJzDyLmBkWMUomlqa XFCclJ5rqFecmFtcmpeul5yfu4kREgtfdjAuPmZ1iFGAg1GJh3cDZ3SIEGtiWXFl7iFGCQ5m JRHeCD2gEG9KYmVValF+fFFpTmrxIUYmDk6pBka/Ty/ED8z7peefqd+y/WZIk80NV4OkSW0H bm157x6WN3m9Ixeb28K6WUzBERt6TS4prJh+5s07n5WtU85mq19P3ctzvM/HfNL2KSt/yK+t NuPbfDHav3NxyUKVTMO0h3ymjf4NS54t5ox+ZJjUw99aVFRoor7a+t3kNQvt5m+Y/CFpp2zr xv1KLMUZiYZazEXFiQC/DlKdYwIAAA== Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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);