platform/x86/intel/pmc: Allow pmc_core_ssram_init to fail
authorDavid E. Box <david.e.box@linux.intel.com>
Wed, 29 Nov 2023 22:21:24 +0000 (14:21 -0800)
committerHans de Goede <hdegoede@redhat.com>
Mon, 4 Dec 2023 13:53:43 +0000 (14:53 +0100)
commit9512920a6be57af191ab2849b3ec393b8e92530a
tree7e90a3a9f2da1c0a20f1f3dc7dacf2a236282fad
parent2e35e3aa9f10ea430468207c3dd9dc33ba1afc33
platform/x86/intel/pmc: Allow pmc_core_ssram_init to fail

Currently, if the PMC SSRAM initialization fails, no error is returned and
the only indication is that a PMC device has not been created.  Instead,
allow an error to be returned and handled directly by the caller.

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-13-david.e.box@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/pmc/core.h
drivers/platform/x86/intel/pmc/core_ssram.c