aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/cm_sbs.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2006-07-01 16:48:23 -0400
committerLen Brown <len.brown@intel.com>2006-07-01 16:48:23 -0400
commit635227ee89929a6e2920fc8aa1cd48f7225d3d93 (patch)
treeb40e81898310a364ca7be378f42212e06dd71238 /drivers/acpi/cm_sbs.c
parent3f86b83243d59bb50caf5938d284d22e10d082a4 (diff)
downloadkernel_goldelico_gta04-635227ee89929a6e2920fc8aa1cd48f7225d3d93.zip
kernel_goldelico_gta04-635227ee89929a6e2920fc8aa1cd48f7225d3d93.tar.gz
kernel_goldelico_gta04-635227ee89929a6e2920fc8aa1cd48f7225d3d93.tar.bz2
ACPI: remove function tracing macros from drivers/acpi/*.c
a few invocations appeared due to the SBS and other patches. Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/cm_sbs.c')
-rw-r--r--drivers/acpi/cm_sbs.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/acpi/cm_sbs.c b/drivers/acpi/cm_sbs.c
index d11507c..574a75a 100644
--- a/drivers/acpi/cm_sbs.c
+++ b/drivers/acpi/cm_sbs.c
@@ -46,7 +46,6 @@ static int lock_battery_dir_cnt = 0;
struct proc_dir_entry *acpi_lock_ac_dir(void)
{
- ACPI_FUNCTION_TRACE("acpi_lock_ac_dir");
down(&cm_sbs_sem);
if (!acpi_ac_dir) {
@@ -59,14 +58,13 @@ struct proc_dir_entry *acpi_lock_ac_dir(void)
"Cannot create %s\n", ACPI_AC_CLASS));
}
up(&cm_sbs_sem);
- return (acpi_ac_dir);
+ return acpi_ac_dir;
}
EXPORT_SYMBOL(acpi_lock_ac_dir);
void acpi_unlock_ac_dir(struct proc_dir_entry *acpi_ac_dir_param)
{
- ACPI_FUNCTION_TRACE("acpi_unlock_ac_dir");
down(&cm_sbs_sem);
if (acpi_ac_dir_param) {
@@ -83,7 +81,6 @@ EXPORT_SYMBOL(acpi_unlock_ac_dir);
struct proc_dir_entry *acpi_lock_battery_dir(void)
{
- ACPI_FUNCTION_TRACE("acpi_lock_battery_dir");
down(&cm_sbs_sem);
if (!acpi_battery_dir) {
@@ -97,14 +94,13 @@ struct proc_dir_entry *acpi_lock_battery_dir(void)
"Cannot create %s\n", ACPI_BATTERY_CLASS));
}
up(&cm_sbs_sem);
- return (acpi_battery_dir);
+ return acpi_battery_dir;
}
EXPORT_SYMBOL(acpi_lock_battery_dir);
void acpi_unlock_battery_dir(struct proc_dir_entry *acpi_battery_dir_param)
{
- ACPI_FUNCTION_TRACE("acpi_unlock_battery_dir");
down(&cm_sbs_sem);
if (acpi_battery_dir_param) {
@@ -116,20 +112,20 @@ void acpi_unlock_battery_dir(struct proc_dir_entry *acpi_battery_dir_param)
acpi_battery_dir = 0;
}
up(&cm_sbs_sem);
+ return;
}
EXPORT_SYMBOL(acpi_unlock_battery_dir);
static int __init acpi_cm_sbs_init(void)
{
- ACPI_FUNCTION_TRACE("acpi_cm_sbs_init");
if (acpi_disabled)
- return_VALUE(0);
+ return 0;
init_MUTEX(&cm_sbs_sem);
- return_VALUE(0);
+ return 0;
}
subsys_initcall(acpi_cm_sbs_init);