Lines Matching refs:soc_dev_attr
129 struct soc_device_attribute *soc_dev_attr;
171 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL);
172 if (!soc_dev_attr)
175 soc_dev_attr->family = "Amlogic Meson";
178 of_property_read_string(np, "model", &soc_dev_attr->machine);
181 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%x:%x - %x:%x",
186 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%s (%s)",
190 soc_dev = soc_device_register(soc_dev_attr);
192 kfree(soc_dev_attr->revision);
193 kfree_const(soc_dev_attr->soc_id);
194 kfree(soc_dev_attr);
200 soc_dev_attr->soc_id,