ACPI: SBS: fix initialization, sem2mutex
authorAndrew Morton <akpm@osdl.org>
Mon, 10 Jul 2006 06:34:45 +0000 (02:34 -0400)
committerLen Brown <len.brown@intel.com>
Mon, 10 Jul 2006 06:34:45 +0000 (02:34 -0400)
commit8970bfe706345223d39d33bfce5f8b29750ab716
tree0a1df121ce05018858e8a52df51281b8adae3c1c
parent953969ddf5b049361ed1e8471cc43dc4134d2a6f
ACPI: SBS: fix initialization, sem2mutex

cm_sbs_sem is being downed (via acpi_ac_init->acpi_lock_ac_dir) before it is
initialised, with grave results.

- Make it a mutex

- Initialise it

- Make it static

- Clean other stuff up.

Thanks to Paul Drynoff <pauldrynoff@gmail.com> for reporting and testing.

Cc: Rich Townsend <rhdt@bartol.udel.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/cm_sbs.c