platform/x86: intel_mid_powerbtn: Convert to use devm_*()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 19 Jan 2017 16:39:41 +0000 (18:39 +0200)
committerDarren Hart <dvhart@linux.intel.com>
Sat, 4 Feb 2017 01:47:20 +0000 (02:47 +0100)
commit07d9089d3989150a80ff2083799929354d7e6c53
treedc52cccf2fd53a350f3ef9bd78c6444477a1e9b3
parent4ec567b8dda20d0129b60da63a472246f09e03d4
platform/x86: intel_mid_powerbtn: Convert to use devm_*()

Convert driver to use managed resources.
This eliminates error path boilerplate and makes code neat.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_mid_powerbtn.c