Lines Matching refs:soc_dev_attr
124 struct soc_device_attribute *soc_dev_attr; in meson_gx_socinfo_init() local
166 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in meson_gx_socinfo_init()
167 if (!soc_dev_attr) in meson_gx_socinfo_init()
170 soc_dev_attr->family = "Amlogic Meson"; in meson_gx_socinfo_init()
173 of_property_read_string(np, "model", &soc_dev_attr->machine); in meson_gx_socinfo_init()
176 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%x:%x - %x:%x", in meson_gx_socinfo_init()
181 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%s (%s)", in meson_gx_socinfo_init()
185 soc_dev = soc_device_register(soc_dev_attr); in meson_gx_socinfo_init()
187 kfree(soc_dev_attr->revision); in meson_gx_socinfo_init()
188 kfree_const(soc_dev_attr->soc_id); in meson_gx_socinfo_init()
189 kfree(soc_dev_attr); in meson_gx_socinfo_init()
195 soc_dev_attr->soc_id, in meson_gx_socinfo_init()