Lines Matching refs:soc_dev_attr
130 struct soc_device_attribute *soc_dev_attr; in meson_gx_socinfo_init() local
172 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in meson_gx_socinfo_init()
173 if (!soc_dev_attr) in meson_gx_socinfo_init()
176 soc_dev_attr->family = "Amlogic Meson"; in meson_gx_socinfo_init()
179 of_property_read_string(np, "model", &soc_dev_attr->machine); in meson_gx_socinfo_init()
182 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%x:%x - %x:%x", in meson_gx_socinfo_init()
187 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%s (%s)", in meson_gx_socinfo_init()
191 soc_dev = soc_device_register(soc_dev_attr); in meson_gx_socinfo_init()
193 kfree(soc_dev_attr->revision); in meson_gx_socinfo_init()
194 kfree_const(soc_dev_attr->soc_id); in meson_gx_socinfo_init()
195 kfree(soc_dev_attr); in meson_gx_socinfo_init()
201 soc_dev_attr->soc_id, in meson_gx_socinfo_init()