Lines Matching refs:soc_dev_attr
153 struct soc_device_attribute *soc_dev_attr; in mvebu_soc_device() local
160 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in mvebu_soc_device()
161 if (!soc_dev_attr) in mvebu_soc_device()
164 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Marvell"); in mvebu_soc_device()
165 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%X", soc_rev); in mvebu_soc_device()
166 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%X", soc_dev_id); in mvebu_soc_device()
168 soc_dev = soc_device_register(soc_dev_attr); in mvebu_soc_device()
170 kfree(soc_dev_attr->family); in mvebu_soc_device()
171 kfree(soc_dev_attr->revision); in mvebu_soc_device()
172 kfree(soc_dev_attr->soc_id); in mvebu_soc_device()
173 kfree(soc_dev_attr); in mvebu_soc_device()