Lines Matching refs:soc_dev_attr
283 struct soc_device_attribute *soc_dev_attr; in renesas_soc_init() local
350 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in renesas_soc_init()
351 if (!soc_dev_attr) in renesas_soc_init()
355 of_property_read_string(np, "model", &soc_dev_attr->machine); in renesas_soc_init()
358 soc_dev_attr->family = kstrdup_const(family->name, GFP_KERNEL); in renesas_soc_init()
359 soc_dev_attr->soc_id = kstrdup_const(strchr(match->compatible, ',') + 1, in renesas_soc_init()
362 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "ES%u.%u", eshi, in renesas_soc_init()
365 pr_info("Detected Renesas %s %s %s\n", soc_dev_attr->family, in renesas_soc_init()
366 soc_dev_attr->soc_id, soc_dev_attr->revision ?: ""); in renesas_soc_init()
368 soc_dev = soc_device_register(soc_dev_attr); in renesas_soc_init()
370 kfree(soc_dev_attr->revision); in renesas_soc_init()
371 kfree_const(soc_dev_attr->soc_id); in renesas_soc_init()
372 kfree_const(soc_dev_attr->family); in renesas_soc_init()
373 kfree(soc_dev_attr); in renesas_soc_init()