base: soc: populate machine name in soc_device_register if empty
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 17 Mar 2023 12:36:18 +0000 (13:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Mar 2023 10:21:23 +0000 (12:21 +0200)
commit3f84aa5ec052dba960baca4ab8a352d43d47028e
tree70f9d980fbed15ae4825aa90fe4b7b36a609d3d4
parent7b884b7f24b42fa25e92ed724ad82f137610afaf
base: soc: populate machine name in soc_device_register if empty

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.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/6dbdf458-9f46-613e-de58-b4a56a6cdd9f@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/soc.c