Lines Matching refs:soc_dev_attr
258 struct soc_device_attribute *soc_dev_attr; in renesas_soc_init() local
294 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in renesas_soc_init()
295 if (!soc_dev_attr) in renesas_soc_init()
299 of_property_read_string(np, "model", &soc_dev_attr->machine); in renesas_soc_init()
302 soc_dev_attr->family = kstrdup_const(family->name, GFP_KERNEL); in renesas_soc_init()
303 soc_dev_attr->soc_id = kstrdup_const(strchr(match->compatible, ',') + 1, in renesas_soc_init()
306 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "ES%u.%u", in renesas_soc_init()
310 pr_info("Detected Renesas %s %s %s\n", soc_dev_attr->family, in renesas_soc_init()
311 soc_dev_attr->soc_id, soc_dev_attr->revision ?: ""); in renesas_soc_init()
313 soc_dev = soc_device_register(soc_dev_attr); in renesas_soc_init()
315 kfree(soc_dev_attr->revision); in renesas_soc_init()
316 kfree_const(soc_dev_attr->soc_id); in renesas_soc_init()
317 kfree_const(soc_dev_attr->family); in renesas_soc_init()
318 kfree(soc_dev_attr); in renesas_soc_init()