Lines Matching refs:soc_dev_attr
150 struct soc_device_attribute *soc_dev_attr; in mvebu_soc_device() local
157 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in mvebu_soc_device()
158 if (!soc_dev_attr) in mvebu_soc_device()
161 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Marvell"); in mvebu_soc_device()
162 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%X", soc_rev); in mvebu_soc_device()
163 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%X", soc_dev_id); in mvebu_soc_device()
165 soc_dev = soc_device_register(soc_dev_attr); in mvebu_soc_device()
167 kfree(soc_dev_attr->family); in mvebu_soc_device()
168 kfree(soc_dev_attr->revision); in mvebu_soc_device()
169 kfree(soc_dev_attr->soc_id); in mvebu_soc_device()
170 kfree(soc_dev_attr); in mvebu_soc_device()