Lines Matching refs:soc_dev_attr
28 struct soc_device_attribute *soc_dev_attr; in imx_soc_device_init() local
43 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in imx_soc_device_init()
44 if (!soc_dev_attr) in imx_soc_device_init()
47 soc_dev_attr->family = "Freescale i.MX"; in imx_soc_device_init()
50 ret = of_property_read_string(root, "model", &soc_dev_attr->machine); in imx_soc_device_init()
144 soc_dev_attr->soc_id = soc_id; in imx_soc_device_init()
181 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%d.%d", in imx_soc_device_init()
184 if (!soc_dev_attr->revision) { in imx_soc_device_init()
189 soc_dev_attr->serial_number = kasprintf(GFP_KERNEL, "%016llX", soc_uid); in imx_soc_device_init()
190 if (!soc_dev_attr->serial_number) { in imx_soc_device_init()
195 soc_dev = soc_device_register(soc_dev_attr); in imx_soc_device_init()
204 kfree(soc_dev_attr->serial_number); in imx_soc_device_init()
206 kfree(soc_dev_attr->revision); in imx_soc_device_init()
208 kfree(soc_dev_attr); in imx_soc_device_init()