Lines Matching refs:attrs
79 struct soc_device_attribute *attrs; in aspeed_socinfo_init() local
112 attrs = kzalloc(sizeof(*attrs), GFP_KERNEL); in aspeed_socinfo_init()
113 if (!attrs) in aspeed_socinfo_init()
127 attrs->machine = kstrdup(machine, GFP_KERNEL); in aspeed_socinfo_init()
130 attrs->family = siliconid_to_name(siliconid); in aspeed_socinfo_init()
131 attrs->revision = siliconid_to_rev(siliconid); in aspeed_socinfo_init()
132 attrs->soc_id = kasprintf(GFP_KERNEL, "%08x", siliconid); in aspeed_socinfo_init()
135 attrs->serial_number = kasprintf(GFP_KERNEL, "%08x%08x", in aspeed_socinfo_init()
138 soc_dev = soc_device_register(attrs); in aspeed_socinfo_init()
140 kfree(attrs->machine); in aspeed_socinfo_init()
141 kfree(attrs->soc_id); in aspeed_socinfo_init()
142 kfree(attrs->serial_number); in aspeed_socinfo_init()
143 kfree(attrs); in aspeed_socinfo_init()
148 attrs->family, in aspeed_socinfo_init()
149 attrs->revision, in aspeed_socinfo_init()
150 attrs->soc_id); in aspeed_socinfo_init()