[PATCH] thinkpad_acpi: Define _sta() only when there are callsites

From: Johannes Weiner
Date: Wed Jan 16 2008 - 08:01:23 EST


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@xxxxxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/