Messages in this thread Patch in this message | | | From | Johannes Weiner <> | Subject | [PATCH] thinkpad_acpi: Define _sta() only when there are callsites | Date | Wed, 16 Jan 2008 14:01:44 +0100 |
| |
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
| |