platform/x86: intel_pmc_ipc: Use devm_* calls in driver probe function
authorKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Tue, 5 Sep 2017 05:37:21 +0000 (22:37 -0700)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sun, 1 Oct 2017 14:33:56 +0000 (17:33 +0300)
commitd7ca5ebf2493ddd610d07cc1c6c48de8fabb0496
treea5292bda588e90b1a16967452174d0b124bfc0a1
parentdda3ec0aa631d15b12a42438d23336354037e108
platform/x86: intel_pmc_ipc: Use devm_* calls in driver probe function

This patch cleans up unnecessary free/alloc calls in ipc_plat_probe(),
ipc_pci_probe() and ipc_plat_get_res() functions by using devm_*
calls.

This patch also adds proper error handling for failure cases in
ipc_pci_probe() function.

Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
[andy: fixed style issues, missed devm_free_irq(), removed unnecessary log message]
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_pmc_ipc.c