Skip to content

Commit

Permalink
soc: amlogic: meson-gx-socinfo: use new soc_device_register functiona…
Browse files Browse the repository at this point in the history
…lity 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>
  • Loading branch information
Heiner Kallweit authored and Greg Kroah-Hartman committed Mar 29, 2023
1 parent 3f84aa5 commit 67ca1b9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/soc/amlogic/meson-gx-socinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,6 @@ static int __init meson_gx_socinfo_init(void)
return -ENODEV;

soc_dev_attr->family = "Amlogic Meson";

np = of_find_node_by_path("/");
of_property_read_string(np, "model", &soc_dev_attr->machine);
of_node_put(np);

soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%x:%x - %x:%x",
socinfo_to_major(socinfo),
socinfo_to_minor(socinfo),
Expand Down

0 comments on commit 67ca1b9

Please sign in to comment.