mei: simplify error handling via devres function.
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 26 Jan 2017 15:16:26 +0000 (17:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Jan 2017 10:08:18 +0000 (11:08 +0100)
commitf8a096059fc5f719301d314e5d7451f1bab5032a
tree3b3f6e19e39d7709bedee2b46e2507de8739c827
parentf046192d98c9a929c3eefdd65b885000d341d969
mei: simplify error handling via devres function.

Use devm_ and pcim_ functions to make error handling
simpler and code smaller and tidier.

Based on original patch by
mei: me: use managed functions pcim_* and devm_*
https://lkml.org/lkml/2016/2/1/339

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/hw-me.c
drivers/misc/mei/hw-txe.c
drivers/misc/mei/hw-txe.h
drivers/misc/mei/pci-me.c
drivers/misc/mei/pci-txe.c