Lines Matching refs:soc_dev_attr
112 struct soc_device_attribute *soc_dev_attr; in meson_gx_socinfo_init() local
150 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in meson_gx_socinfo_init()
151 if (!soc_dev_attr) in meson_gx_socinfo_init()
154 soc_dev_attr->family = "Amlogic Meson"; in meson_gx_socinfo_init()
157 of_property_read_string(np, "model", &soc_dev_attr->machine); in meson_gx_socinfo_init()
160 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%x:%x - %x:%x", in meson_gx_socinfo_init()
165 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%s (%s)", in meson_gx_socinfo_init()
169 soc_dev = soc_device_register(soc_dev_attr); in meson_gx_socinfo_init()
171 kfree(soc_dev_attr->revision); in meson_gx_socinfo_init()
172 kfree_const(soc_dev_attr->soc_id); in meson_gx_socinfo_init()
173 kfree(soc_dev_attr); in meson_gx_socinfo_init()
179 soc_dev_attr->soc_id, in meson_gx_socinfo_init()