Lines Matching refs:soc_dev_attr
78 struct soc_device_attribute *soc_dev_attr; in imx_soc_device_init() local
84 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in imx_soc_device_init()
85 if (!soc_dev_attr) in imx_soc_device_init()
88 soc_dev_attr->family = "Freescale i.MX"; in imx_soc_device_init()
91 ret = of_property_read_string(root, "model", &soc_dev_attr->machine); in imx_soc_device_init()
154 soc_dev_attr->soc_id = soc_id; in imx_soc_device_init()
156 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%d.%d", in imx_soc_device_init()
159 if (!soc_dev_attr->revision) in imx_soc_device_init()
162 soc_dev = soc_device_register(soc_dev_attr); in imx_soc_device_init()
169 kfree(soc_dev_attr->revision); in imx_soc_device_init()
171 kfree(soc_dev_attr); in imx_soc_device_init()