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

Message ID d846047f-b714-3fd1-d8c6-9f774902fb9f@gmail.com
Headers
Series base: soc: populate machine name in soc_device_register if empty |

Message

Heiner Kallweit March 17, 2023, 12:35 p.m. UTC
  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(-)