soc: amlogic: meson-gx-socinfo: use new soc_device_register functionality to populate...
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 17 Mar 2023 12:37:05 +0000 (13:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Mar 2023 10:21:23 +0000 (12:21 +0200)
commit67ca1b9346fe255cfe503b967407fd24ec76da37
treea89bba51dbbaa6ea7efb9181196fdd431509fa0e
parent3f84aa5ec052dba960baca4ab8a352d43d47028e
soc: amlogic: meson-gx-socinfo: use new soc_device_register functionality to populate machine name

A new fallback mechanism has been added to soc_device_register that
populates machine with the DT model information if machine isn't set yet.
This allows to remove this code here.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/ac3b4356-d4c3-25e4-9bc2-c5b369c676b2@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soc/amlogic/meson-gx-socinfo.c