]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86/amd/pmf: Use dev_err_probe() to simplify error handling
authorShyam Sundar S K <Shyam-sundar.S-k@amd.com>
Mon, 4 Nov 2024 05:48:27 +0000 (11:18 +0530)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 4 Nov 2024 13:13:04 +0000 (15:13 +0200)
commitcc8e2dbf99d2c5844ac06fa392675e994e5ed519
tree8d01b4eb7a35d5a9fd8f876ec96962a1a6a188da
parentab49d7bf991a524a976c9fbbeb53b050ebe4323f
platform/x86/amd/pmf: Use dev_err_probe() to simplify error handling

To simplify error handling in the amd_pmf probe function and reduce code
size, dev_err() is replaced with dev_err_probe().

Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Co-developed-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
Signed-off-by: Patil Rajesh Reddy <Patil.Reddy@amd.com>
Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Link: https://lore.kernel.org/r/20241104054829.620858-2-Shyam-sundar.S-k@amd.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/amd/pmf/core.c