summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2023-12-04 14:32:03 +0100
committerGeert Uytterhoeven <geert+renesas@glider.be>2023-12-13 17:22:43 +0100
commita6921e6f41e8237ac355aac242cca237251a07a1 (patch)
tree2214211a2fa308025d50d52ef8033b5d7698a88f
parentLinux 6.7-rc1 (diff)
downloadlinux-a6921e6f41e8237ac355aac242cca237251a07a1.tar.xz
linux-a6921e6f41e8237ac355aac242cca237251a07a1.zip
soc: renesas: Remove duplicate setup of soc_device_attribute.family
As of commit 3f84aa5ec052dba9 ("base: soc: populate machine name in soc_device_register if empty") in v6.4, soc_device_register() fills in soc_device_attribute.family when it is still empty. Hence the identical code in renesas_soc_init() doing the same can be removed. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/4c5e4d0d1819028466748ed684254fec41aae816.1701696627.git.geert+renesas@glider.be
-rw-r--r--drivers/soc/renesas/renesas-soc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/soc/renesas/renesas-soc.c b/drivers/soc/renesas/renesas-soc.c
index c732d4a5b26a..27eae1a354ab 100644
--- a/drivers/soc/renesas/renesas-soc.c
+++ b/drivers/soc/renesas/renesas-soc.c
@@ -486,10 +486,6 @@ static int __init renesas_soc_init(void)
return -ENOMEM;
}
- np = of_find_node_by_path("/");
- of_property_read_string(np, "model", &soc_dev_attr->machine);
- of_node_put(np);
-
soc_dev_attr->family = kstrdup_const(family->name, GFP_KERNEL);
soc_dev_attr->soc_id = kstrdup_const(soc_id, GFP_KERNEL);