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: 11414 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 2AAD623E41 for ; Fri, 14 Sep 2012 09:25:46 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 65526A33069 for ; Fri, 14 Sep 2012 09:25:45 +0000 (UTC) Received: by ieak11 with SMTP id k11so6222872iea.11 for ; Fri, 14 Sep 2012 02:25:44 -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 :x-gm-message-state; bh=Octvo+2H+sc9plLjzv5ObBsbpHrgR1Qg4cX+TudNUWE=; b=hAt/7IgUPL6HE2vgyxKnxpgBzpRplgPYA8VVlfL65ZQrLpzLwW0y+y3YFrGAemTUmP aiaHmy7jsJgzIDVNqUn2FnALCrH/CAx9+LiPaAlw2Y4kriv6c1F25Ncr/f6boSYX4Bwo 2reJMF361LWEXa+8nfLUOG6Tn9aEzzuunj31T5yC2ofXsJJtTJU54mTHCRzo08XOGrTw zsaYh9xhQt+stz5dFTY5+U4Krjf8ys4HOcOLMY1Huw7cw3ZdQPsK0hV7dBjbC/yguHzD KwJYCYTkXXfobzT07E/FtedhnXahly1/roPyAYUkMTBUsdpsbizx3yT3NUZ6lG5xMtiu xSoQ== Received: by 10.50.89.164 with SMTP id bp4mr2392037igb.28.1347614744802; Fri, 14 Sep 2012 02:25:44 -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.50.184.232 with SMTP id ex8csp179127igc; Fri, 14 Sep 2012 02:25:43 -0700 (PDT) Received: by 10.216.205.101 with SMTP id i79mr1186622weo.209.1347614743073; Fri, 14 Sep 2012 02:25:43 -0700 (PDT) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id g6si2474288wiy.38.2012.09.14.02.25.42 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 14 Sep 2012 02:25:43 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=74.125.82.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: by mail-wg0-f50.google.com with SMTP id ds11so2987992wgb.31 for ; Fri, 14 Sep 2012 02:25:42 -0700 (PDT) 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: ALoCoQkDc1EiT2u7BIdiwOqoG6VaLh75jWvftFEv4B+L2wmysS1ZbT/mTI7Vhk76McG8OHbUH9mS 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;