platform/x86/intel/pmc: Cleanup SSRAM discovery
authorDavid E. Box <david.e.box@linux.intel.com>
Wed, 29 Nov 2023 22:21:25 +0000 (14:21 -0800)
committerHans de Goede <hdegoede@redhat.com>
Mon, 4 Dec 2023 13:53:43 +0000 (14:53 +0100)
commita01486dc4bb17de976c6d0a4b1ad5f8106525dfb
treeafed18d807f638b0ec640ded2d20846341471023
parent9512920a6be57af191ab2849b3ec393b8e92530a
platform/x86/intel/pmc: Cleanup SSRAM discovery

Clean up the code handling SSRAM discovery. Handle all resource allocation
and cleanup in pmc_core_ssram_get_pmc(). Return the error status from this
function but only fail the init if we fail to discover the primary PMC.

Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20231129222132.2331261-14-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/pmc/core_ssram.c