platform/x86: Simplify intel_mid_powerbtn
authorAmeya Palande <2ameya@gmail.com>
Wed, 6 Apr 2011 14:44:37 +0000 (17:44 +0300)
committerMatthew Garrett <mjg@redhat.com>
Fri, 27 May 2011 16:36:46 +0000 (12:36 -0400)
commitb9e066942981c6de3897de94953bea295ae18ec8
tree8086d04ef844a4511f193acb9274bedc985c8201
parent020036678e810be10a352339faa9a1df2bd8f5a3
platform/x86: Simplify intel_mid_powerbtn

This patch:
1. Removes unnecessay #defines
2. Removes 'mfld_pb_priv' data structure which results in simpler error
   handling and less memory allocations.

Signed-off-by: Ameya Palande <2ameya@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/intel_mid_powerbtn.c