ACPI: ec: Do request_region outside WARN()
authorAndi Kleen <andi@firstfloor.org>
Mon, 6 Feb 2012 16:17:08 +0000 (08:17 -0800)
committerLen Brown <len.brown@intel.com>
Fri, 30 Mar 2012 05:41:35 +0000 (01:41 -0400)
commitd6795fe32da13bde39ea483e42799a22daa730b5
tree96be9f242dbc6b38a1cf54f96dccaeca72227490
parentc16fa4f2ad19908a47c63d8fa436a1178438c7e7
ACPI: ec: Do request_region outside WARN()

WARN() is not supposed to have side effects, so move the request_regions
outside.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/ec.c