From patchwork Sun Oct 11 17:21:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 54742 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by patches.linaro.org (Postfix) with ESMTPS id C4E892304F for ; Sun, 11 Oct 2015 17:21:52 +0000 (UTC) Received: by lbbpc3 with SMTP id pc3sf5715401lbb.2 for ; Sun, 11 Oct 2015 10:21:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=ghkRwqZ/0Mgl7sX31w8KHkksRNIZqjRmW4JZI5mjLvY=; b=BaVvzm6giSB7VAs2gOmQjacNmI1StPky8IqvyZXDCb0LXDXNGQ4Q4JgQn6yZx4B1p7 ZXUn7ivxfeHgKRBThF0xxHU7BKcxc/hHVfqcsZ9nysIMHjgHKJ6e4h5d1Ka348ACQk1K hwoiN+sAqKJ2m5REmoBUmIw4k62iT331BGbb8xZ8j50Yl/Oj8FTtDFiIWw3U5i0fqjmH yna+WCso5SG6foB9bgOn3WUp85pbtVV9COww0LUKdSFw9w+m5v3NIH9JWEWTvQSxUSlS SeKStYQazw8VerhBdd+sXW04EtxZtB9o2XBHv23TCPfzddNTHDFrcXqjVkY+4Gw+nw3d zLnQ== X-Gm-Message-State: ALoCoQm3tv6EFhr/xWDvxquOODuS+qexYw/EWrE0T/KlkwppoavIQ1CX2pFLlsE/fNz1Yo7hoKHt X-Received: by 10.180.85.133 with SMTP id h5mr1927831wiz.1.1444584111614; Sun, 11 Oct 2015 10:21:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.19.162 with SMTP id 34ls208394lft.73.gmail; Sun, 11 Oct 2015 10:21:51 -0700 (PDT) X-Received: by 10.25.155.75 with SMTP id d72mr7025126lfe.33.1444584111432; Sun, 11 Oct 2015 10:21:51 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id v139si8411256lfd.60.2015.10.11.10.21.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Oct 2015 10:21:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbbck17 with SMTP id ck17so3138420lbb.1 for ; Sun, 11 Oct 2015 10:21:51 -0700 (PDT) X-Received: by 10.25.38.9 with SMTP id m9mr6963431lfm.112.1444584111143; Sun, 11 Oct 2015 10:21:51 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1144021lbq; Sun, 11 Oct 2015 10:21:50 -0700 (PDT) X-Received: by 10.67.5.42 with SMTP id cj10mr20819539pad.128.1444584110129; Sun, 11 Oct 2015 10:21:50 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i11si19610513pbq.151.2015.10.11.10.21.49; Sun, 11 Oct 2015 10:21:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752252AbbJKRVl (ORCPT + 30 others); Sun, 11 Oct 2015 13:21:41 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:35124 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751687AbbJKRVi (ORCPT ); Sun, 11 Oct 2015 13:21:38 -0400 Received: by pabve7 with SMTP id ve7so74363279pab.2 for ; Sun, 11 Oct 2015 10:21:38 -0700 (PDT) X-Received: by 10.68.137.35 with SMTP id qf3mr29165455pbb.89.1444584097931; Sun, 11 Oct 2015 10:21:37 -0700 (PDT) Received: from localhost ([120.59.64.42]) by smtp.gmail.com with ESMTPSA id q8sm13752405pap.34.2015.10.11.10.21.36 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 11 Oct 2015 10:21:36 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, skannan@codeaurora.org, Viresh Kumar , linux-kernel@vger.kernel.org (open list) Subject: [PATCH 3/5] cpufreq: remove cpufreq_sysfs_{create|remove}_file() Date: Sun, 11 Oct 2015 22:51:12 +0530 Message-Id: X-Mailer: git-send-email 2.4.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , They don't do anything special now, remove the unnecessary wrapper. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 22 +++++----------------- include/linux/cpufreq.h | 2 -- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index db688d18a189..2cb0e3b8170e 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -880,21 +880,6 @@ static struct kobj_type ktype_cpufreq = { .release = cpufreq_sysfs_release, }; -struct kobject *cpufreq_global_kobject; -EXPORT_SYMBOL(cpufreq_global_kobject); - -int cpufreq_sysfs_create_file(const struct attribute *attr) -{ - return sysfs_create_file(cpufreq_global_kobject, attr); -} -EXPORT_SYMBOL(cpufreq_sysfs_create_file); - -void cpufreq_sysfs_remove_file(const struct attribute *attr) -{ - sysfs_remove_file(cpufreq_global_kobject, attr); -} -EXPORT_SYMBOL(cpufreq_sysfs_remove_file); - static int add_cpu_dev_symlink(struct cpufreq_policy *policy, int cpu) { struct device *cpu_dev; @@ -2397,7 +2382,7 @@ static int create_boost_sysfs_file(void) if (!cpufreq_driver->set_boost) cpufreq_driver->set_boost = cpufreq_boost_set_sw; - ret = cpufreq_sysfs_create_file(&boost.attr); + ret = sysfs_create_file(cpufreq_global_kobject, &boost.attr); if (ret) pr_err("%s: cannot register global BOOST sysfs file\n", __func__); @@ -2408,7 +2393,7 @@ static int create_boost_sysfs_file(void) static void remove_boost_sysfs_file(void) { if (cpufreq_boost_supported()) - cpufreq_sysfs_remove_file(&boost.attr); + sysfs_remove_file(cpufreq_global_kobject, &boost.attr); } int cpufreq_enable_boost_support(void) @@ -2556,6 +2541,9 @@ static struct syscore_ops cpufreq_syscore_ops = { .shutdown = cpufreq_suspend, }; +struct kobject *cpufreq_global_kobject; +EXPORT_SYMBOL(cpufreq_global_kobject); + static int __init cpufreq_core_init(void) { if (cpufreq_disabled()) diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 338bf0e59bb8..9623218d996a 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -149,8 +149,6 @@ static inline bool policy_is_shared(struct cpufreq_policy *policy) /* /sys/devices/system/cpu/cpufreq: entry point for global variables */ extern struct kobject *cpufreq_global_kobject; -int cpufreq_sysfs_create_file(const struct attribute *attr); -void cpufreq_sysfs_remove_file(const struct attribute *attr); #ifdef CONFIG_CPU_FREQ unsigned int cpufreq_get(unsigned int cpu);