]> git.proxmox.com Git - mirror_ubuntu-kernels.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>
Mon, 23 Oct 2017 17:13:37 +0000 (20:13 +0300)
commit83beee5c88a6c71ded70e2eef5ca7406a02605cc
tree9abf8b9b87c116e9657a96c297a010b79826e7ad
parentce7c47d60bda6c7f09ccf16e978d971c8fa16ff0
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