From patchwork Fri Sep 14 09:25:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 1456431 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id C904840220 for ; Fri, 14 Sep 2012 09:25:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758731Ab2INJZp (ORCPT ); Fri, 14 Sep 2012 05:25:45 -0400 Received: from mail-we0-f174.google.com ([74.125.82.174]:52192 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758675Ab2INJZn (ORCPT ); Fri, 14 Sep 2012 05:25:43 -0400 Received: by weyx8 with SMTP id x8so2266481wey.19 for ; Fri, 14 Sep 2012 02:25:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=Octvo+2H+sc9plLjzv5ObBsbpHrgR1Qg4cX+TudNUWE=; b=gOrHEVb9chtotxXjiTjbZgwrq9/Hh2ZGl8CH4di+pOysuBlBq5h7yGoyhPLVkUlk6t diHG6gxOXJRVeFZz5AlAMpB+JExvaw2UQWBPVKE+WGuDhH4nQK4CDgn+52iifMXa6PyL /GnPGiwtDpvEcUX/+/ZRUAMhIFi2h03ZtYqaOfMXFSmMalsytty9LY1iGUuAbmq2bR9d mFPaWmGHwoJZfVS93p2GUoNx2TXnrz56VlN0TBib5WVx1uD+BD9XvN08/gfoPxkuva9m QjvZTdPZ1gVS0IuwSq97jgMUoP8uiZzt62Msws0n+LshwofVaytzW5ex33D0gFUCWzj0 lIJQ== Received: by 10.216.133.90 with SMTP id p68mr1130446wei.105.1347614742226; Fri, 14 Sep 2012 02:25:42 -0700 (PDT) Received: from localhost.localdomain (AToulouse-651-1-110-236.w109-222.abo.wanadoo.fr. [109.222.197.236]) by mx.google.com with ESMTPS id ct3sm17996030wib.5.2012.09.14.02.25.40 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 14 Sep 2012 02:25:41 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl, lenb@kernel.org Cc: linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, patches@linaro.org, linaro-dev@lists.linaro.org Subject: [PATCH 2/3] acpi : remove unused function parameter Date: Fri, 14 Sep 2012 11:25:35 +0200 Message-Id: <1347614736-9553-2-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1347614736-9553-1-git-send-email-daniel.lezcano@linaro.org> References: <1347614736-9553-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQnoeP/v+RHRbMROam2UoTe6gVyOl9jvuy5yfbD9UY8LiUb+wSQHHsS6kiuoQMTuDU5IwpIs Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org The 'device' parameter is not used neither in acpi_processor_power_init and acpi_processor_power_exit. This patch removes it. Signed-off-by: Daniel Lezcano --- drivers/acpi/processor_driver.c | 6 +++--- drivers/acpi/processor_idle.c | 6 ++---- include/acpi/processor.h | 6 ++---- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c index bfc31cb..9c9288b 100644 --- a/drivers/acpi/processor_driver.c +++ b/drivers/acpi/processor_driver.c @@ -475,7 +475,7 @@ static __ref int acpi_processor_start(struct acpi_processor *pr) acpi_processor_get_limit_info(pr); if (!cpuidle_get_driver() || cpuidle_get_driver() == &acpi_idle_driver) - acpi_processor_power_init(pr, device); + acpi_processor_power_init(pr); pr->cdev = thermal_cooling_device_register("Processor", device, &processor_cooling_ops); @@ -509,7 +509,7 @@ err_remove_sysfs_thermal: err_thermal_unregister: thermal_cooling_device_unregister(pr->cdev); err_power_exit: - acpi_processor_power_exit(pr, device); + acpi_processor_power_exit(pr); return result; } @@ -620,7 +620,7 @@ static int acpi_processor_remove(struct acpi_device *device, int type) return -EINVAL; } - acpi_processor_power_exit(pr, device); + acpi_processor_power_exit(pr); sysfs_remove_link(&device->dev.kobj, "sysdev"); diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 0a6405d..3655ab9 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -1222,8 +1222,7 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr) static int acpi_processor_registered; -int __cpuinit acpi_processor_power_init(struct acpi_processor *pr, - struct acpi_device *device) +int __cpuinit acpi_processor_power_init(struct acpi_processor *pr) { acpi_status status = 0; int retval; @@ -1295,8 +1294,7 @@ int __cpuinit acpi_processor_power_init(struct acpi_processor *pr, return 0; } -int acpi_processor_power_exit(struct acpi_processor *pr, - struct acpi_device *device) +int acpi_processor_power_exit(struct acpi_processor *pr) { struct cpuidle_device *dev = per_cpu(acpi_cpuidle_device, pr->id); diff --git a/include/acpi/processor.h b/include/acpi/processor.h index ddd1a44..555d033 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h @@ -322,12 +322,10 @@ extern void acpi_processor_reevaluate_tstate(struct acpi_processor *pr, extern const struct file_operations acpi_processor_throttling_fops; extern void acpi_processor_throttling_init(void); /* in processor_idle.c */ -int acpi_processor_power_init(struct acpi_processor *pr, - struct acpi_device *device); +int acpi_processor_power_init(struct acpi_processor *pr); +int acpi_processor_power_exit(struct acpi_processor *pr); int acpi_processor_cst_has_changed(struct acpi_processor *pr); int acpi_processor_hotplug(struct acpi_processor *pr); -int acpi_processor_power_exit(struct acpi_processor *pr, - struct acpi_device *device); int acpi_processor_suspend(struct device *dev); int acpi_processor_resume(struct device *dev); extern struct cpuidle_driver acpi_idle_driver;