Lines Matching refs:soc_dev_attr
15 static struct soc_device_attribute soc_dev_attr; variable
120 soc_dev_attr.machine = devm_kstrdup(dev, machine, GFP_KERNEL); in loongson2_guts_probe()
125 soc_dev_attr.family = devm_kasprintf(dev, GFP_KERNEL, in loongson2_guts_probe()
128 soc_dev_attr.family = devm_kasprintf(dev, GFP_KERNEL, "Loongson"); in loongson2_guts_probe()
130 if (!soc_dev_attr.family) in loongson2_guts_probe()
132 soc_dev_attr.soc_id = devm_kasprintf(dev, GFP_KERNEL, in loongson2_guts_probe()
134 if (!soc_dev_attr.soc_id) in loongson2_guts_probe()
136 soc_dev_attr.revision = devm_kasprintf(dev, GFP_KERNEL, "%d.%d", in loongson2_guts_probe()
138 if (!soc_dev_attr.revision) in loongson2_guts_probe()
141 soc_dev = soc_device_register(&soc_dev_attr); in loongson2_guts_probe()
145 pr_info("Machine: %s\n", soc_dev_attr.machine); in loongson2_guts_probe()
146 pr_info("SoC family: %s\n", soc_dev_attr.family); in loongson2_guts_probe()
148 soc_dev_attr.soc_id, soc_dev_attr.revision); in loongson2_guts_probe()