]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit493d68f61edd9bf348879961cc731450000472cf
treea5292bda588e90b1a16967452174d0b124bfc0a1
parent0a48dab9b0aa02aff38ef960edbfe09ed2ee343a
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