From patchwork Thu Apr 12 01:02:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Turquette X-Patchwork-Id: 7748 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 1ECC223E29 for ; Thu, 12 Apr 2012 01:07:47 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id D75B9A187DB for ; Thu, 12 Apr 2012 01:07:46 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2812570iag.11 for ; Wed, 11 Apr 2012 18:07:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:x-gm-message-state; bh=Gk/fwVYI46PvzZbmjGqGQD6IWfo9lPQ3+0Uu25RYqBU=; b=o2/e/3ZzG1Z/BU8BAe24T0L/M0oAkGde0IaWyVz0uEuKkDw2K5A8EkJVQBrTHe/HHY F55NdJOUlcmTuZh+cPTxANS0LiGVJzBMZRR52jvW270kK0yAroa2Mgtm+zsXYimneRm4 fR768zz19Ewi5mYf6w4LQyAm4oWGhZkVanMylBIxiukVnSXJNnwh6C2h+qa6P8mjS5Xw b6OVB5+MGJ0XuLI+DESJX2B5mrtEKUikEoBvRbEQG+l/jnXx3Y2O66HwTxVnFPmwI+OW rWoTCVnuyYxjtNn9BUNOW5YCWdq8x9+bxrzpIrxTYXWMPyF6csW7PeiGOQ7AAyR+yGW1 8vMw== Received: by 10.50.187.225 with SMTP id fv1mr334139igc.28.1334192866641; Wed, 11 Apr 2012 18:07:46 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.164.217 with SMTP id f25csp161853iby; Wed, 11 Apr 2012 18:07:46 -0700 (PDT) Received: by 10.182.52.104 with SMTP id s8mr559710obo.59.1334192865937; Wed, 11 Apr 2012 18:07:45 -0700 (PDT) Received: from arroyo.ext.ti.com (arroyo.ext.ti.com. [192.94.94.40]) by mx.google.com with ESMTPS id rz10si583111obc.44.2012.04.11.18.07.45 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 11 Apr 2012 18:07:45 -0700 (PDT) Received-SPF: neutral (google.com: 192.94.94.40 is neither permitted nor denied by best guess record for domain of mturquette@linaro.org) client-ip=192.94.94.40; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.94.94.40 is neither permitted nor denied by best guess record for domain of mturquette@linaro.org) smtp.mail=mturquette@linaro.org Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id q3C17X4A018244; Wed, 11 Apr 2012 20:07:33 -0500 Received: from DLEE74.ent.ti.com (dlee74.ent.ti.com [157.170.170.8]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id q3C17XTh002596; Wed, 11 Apr 2012 20:07:33 -0500 Received: from dlelxv22.itg.ti.com (172.17.1.197) by DLEE74.ent.ti.com (157.170.170.8) with Microsoft SMTP Server id 14.1.323.3; Wed, 11 Apr 2012 20:07:33 -0500 Received: from nucleus.nsc.com (nucleus.nsc.com [10.188.36.112]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id q3C17Pn3005839; Wed, 11 Apr 2012 20:07:31 -0500 From: Mike Turquette To: CC: , , , , Mike Turquette , Olof Johansson , Russell King , Sascha Hauer , Richard Zhao , Saravana Kannan , Mark Brown , Andrew Lunn , Rajendra Nayak , Viresh Kumar Subject: [PATCH 02/13] clk: core: remove dead code paths Date: Wed, 11 Apr 2012 18:02:40 -0700 Message-ID: <1334192572-12499-3-git-send-email-mturquette@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1334192572-12499-1-git-send-email-mturquette@linaro.org> References: <1334192572-12499-1-git-send-email-mturquette@linaro.org> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQkJ/V7IyWPu27gf3yJbFaQoXoNUa5Yr4uhBzQyq0Nn3MPUQLTjYF7qpJ3Fm3wp57HFfRZGq Some static inline dummy functions were left over from before the clock core was consolidated from several C files down to one. Remove them. Reported-by: Shawn Guo Signed-off-by: Mike Turquette Cc: Arnd Bergman Cc: Olof Johansson Cc: Russell King Cc: Sascha Hauer Cc: Richard Zhao Cc: Saravana Kannan Cc: Mark Brown Cc: Andrew Lunn Cc: Rajendra Nayak Cc: Viresh Kumar --- drivers/clk/clk.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 3ed36d3..4daacf5 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -194,7 +194,7 @@ static int __init clk_debug_init(void) late_initcall(clk_debug_init); #else static inline int clk_debug_register(struct clk *clk) { return 0; } -#endif /* CONFIG_COMMON_CLK_DEBUG */ +#endif #ifdef CONFIG_COMMON_CLK_DISABLE_UNUSED /* caller must hold prepare_lock */ @@ -246,9 +246,7 @@ static int clk_disable_unused(void) return 0; } late_initcall(clk_disable_unused); -#else -static inline int clk_disable_unused(struct clk *clk) { return 0; } -#endif /* CONFIG_COMMON_CLK_DISABLE_UNUSED */ +#endif /*** helper functions ***/