From patchwork Wed Sep 24 13:50:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 4966051 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 C3588BEEA5 for ; Wed, 24 Sep 2014 13:52:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 38F6C20179 for ; Wed, 24 Sep 2014 13:52:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8729C20148 for ; Wed, 24 Sep 2014 13:52:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752524AbaIXNwG (ORCPT ); Wed, 24 Sep 2014 09:52:06 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:59103 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754017AbaIXNuf (ORCPT ); Wed, 24 Sep 2014 09:50:35 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NCE00AK4RX17B80@mailout1.w1.samsung.com>; Wed, 24 Sep 2014 14:53:25 +0100 (BST) X-AuditID: cbfec7f5-b7f776d000003e54-76-5422cc26bb26 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id AE.1E.15956.62CC2245; Wed, 24 Sep 2014 14:50:30 +0100 (BST) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NCE005ZMRRU2800@eusync1.samsung.com>; Wed, 24 Sep 2014 14:50:30 +0100 (BST) From: Krzysztof Kozlowski To: Russell King , Dan Williams , Vinod Koul , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Ulf Hansson , Grant Likely , Lars-Peter Clausen , Michal Simek , "Rafael J. Wysocki" , Len Brown , Pavel Machek , Randy Dunlap , Alan Stern , linux-doc@vger.kernel.org, linux-pm@vger.kernel.org Cc: Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski Subject: [PATCH v7 5/5] amba: Remove unused amba_pclk_enable/disable macros Date: Wed, 24 Sep 2014 15:50:12 +0200 Message-id: <1411566612-32277-6-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1411566612-32277-1-git-send-email-k.kozlowski@samsung.com> References: <1411566612-32277-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPLMWRmVeSWpSXmKPExsVy+t/xy7pqZ5RCDN506lhsnLGe1WL61AuM Fqun/mW1OPBnB6PF6xeGFmeb3rBbLJk8n9Vi1pS9TBYL25awWFzeNYfN4nPvEUaL25d5LdYe uctu8e5lhMXdU0fZLN7emc5iceb0JVaLCb8vsFkcXxtu8bJvP4uDiEdLcw+bx+YVWh6L97xk 8rhzbQ+bx5I3h1g9tlxtZ/GYffcHo0ffllWMHitWf2f3+LxJzmPv598sAdxRXDYpqTmZZalF +nYJXBm3mgUKlrBXPFp3nr2BcSZbFyMnh4SAicSj9UfYIWwxiQv31gPFuTiEBJYySjQte80O 4fQxSZzpnMUCUsUmYCyxefkSsCoRgSMsEs/uPQFzmAWOMkpM733LBFIlLOAt8fP6RaB2Dg4W AVWJY7sDQcK8Au4Sj34vYoFYJydx8thkVpASTgEPibdbtUDCQkAlfb3P2SYw8i5gZFjFKJpa mlxQnJSea6RXnJhbXJqXrpecn7uJERIJX3cwLj1mdYhRgINRiYd3orhSiBBrYllxZe4hRgkO ZiUR3kOngEK8KYmVValF+fFFpTmpxYcYmTg4pRoYl6y+0qDz68nZ/05d9xM9JmiyHHiYZ/nG oU/5acKGF19sw7uljrH8XNC8vz77x5sCiR5vzy89VtslDBY6ha7P1DRiXsLRz3d2Od+DuIJT 25v5FLZMiO0TC+CwuL3Y7f1sXV/5SckrfFwWvQhZ96zSRXnuH0+e68tFhfa1tjzbJHzS5oJE NVeBEktxRqKhFnNRcSIAI+LBhmICAAA= Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-7.6 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 fd0c0bfa1d38..275e4a346de7 100644 --- a/include/linux/amba/bus.h +++ b/include/linux/amba/bus.h @@ -87,12 +87,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 void amba_pclk_prepare(struct amba_device *dev) { clk_prepare(dev->pclk);