Lines Matching refs:soc_dev_attr
28 struct soc_device_attribute *soc_dev_attr; in imx_soc_device_init() local
46 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in imx_soc_device_init()
47 if (!soc_dev_attr) in imx_soc_device_init()
50 soc_dev_attr->family = "Freescale i.MX"; in imx_soc_device_init()
53 ret = of_property_read_string(root, "model", &soc_dev_attr->machine); in imx_soc_device_init()
147 soc_dev_attr->soc_id = soc_id; in imx_soc_device_init()
184 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%d.%d", in imx_soc_device_init()
187 if (!soc_dev_attr->revision) { in imx_soc_device_init()
192 soc_dev_attr->serial_number = kasprintf(GFP_KERNEL, "%016llX", soc_uid); in imx_soc_device_init()
193 if (!soc_dev_attr->serial_number) { in imx_soc_device_init()
198 soc_dev = soc_device_register(soc_dev_attr); in imx_soc_device_init()
207 kfree(soc_dev_attr->serial_number); in imx_soc_device_init()
209 kfree(soc_dev_attr->revision); in imx_soc_device_init()
211 kfree(soc_dev_attr); in imx_soc_device_init()