Lines Matching refs:soc_dev_attr
115 static void __init soc_info_populate(struct soc_device_attribute *soc_dev_attr, in soc_info_populate() argument
118 soc_dev_attr->soc_id = soc_id; in soc_info_populate()
119 soc_dev_attr->machine = ux500_get_machine(); in soc_info_populate()
120 soc_dev_attr->family = ux500_get_family(); in soc_info_populate()
121 soc_dev_attr->revision = ux500_get_revision(); in soc_info_populate()
131 struct soc_device_attribute *soc_dev_attr; in ux500_soc_device_init() local
133 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in ux500_soc_device_init()
134 if (!soc_dev_attr) in ux500_soc_device_init()
137 soc_info_populate(soc_dev_attr, soc_id); in ux500_soc_device_init()
139 soc_dev = soc_device_register(soc_dev_attr); in ux500_soc_device_init()
141 kfree(soc_dev_attr); in ux500_soc_device_init()