lkml.org 
[lkml]   [2008]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] thinkpad_acpi: Define _sta() only when there are callsites
Date
With configs where neither the dock nor the bay subdriver is enabled,
_sta() is defined but never used. Define it conditionally.

Signed-off-by: Johannes Weiner <hannes@saeurebad.de>
---
drivers/misc/thinkpad_acpi.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c
index cf56647..d5ac8b7 100644
--- a/drivers/misc/thinkpad_acpi.c
+++ b/drivers/misc/thinkpad_acpi.c
@@ -293,6 +293,7 @@ static int acpi_ec_write(int i, u8 v)
return 1;
}

+#if defined(CONFIG_THINKPAD_ACPI_DOCK) || defined(CONFIG_THINKPAD_ACPI_DOCK)
static int _sta(acpi_handle handle)
{
int status;
@@ -302,6 +303,7 @@ static int _sta(acpi_handle handle)

return status;
}
+#endif

static int issue_thinkpad_cmos_command(int cmos_cmd)
{
--
1.5.3.8


\
 
 \ /
  Last update: 2008-01-16 14:05    [from the cache]
©2003-2011 Jasper Spaans