[PATCH 0/2] base: soc: populate machine name in soc_device_register if empty

From: Heiner Kallweit
Date: Fri Mar 17 2023 - 08:36:08 EST


Several SoC drivers use the same of-based mechanism to populate the machine
name. Therefore move this to the core and try to populate the machine name
in soc_device_register if it's not set yet.
Make meson-gx-socinfo the first user of this new functionality.

Heiner Kallweit (2):
base: soc: populate machine name in soc_device_register if empty
soc: amlogic: meson-gx-socinfo: use new soc_device_register
functionality to populate machine name

drivers/base/soc.c | 15 +++++++++++++++
drivers/soc/amlogic/meson-gx-socinfo.c | 5 -----
2 files changed, 15 insertions(+), 5 deletions(-)

--
2.39.2