Lines Matching refs:soc_dev_attr
333 struct soc_device_attribute *soc_dev_attr; in renesas_soc_init() local
419 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in renesas_soc_init()
420 if (!soc_dev_attr) in renesas_soc_init()
424 of_property_read_string(np, "model", &soc_dev_attr->machine); in renesas_soc_init()
427 soc_dev_attr->family = kstrdup_const(family->name, GFP_KERNEL); in renesas_soc_init()
428 soc_dev_attr->soc_id = kstrdup_const(strchr(match->compatible, ',') + 1, in renesas_soc_init()
431 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "ES%u.%u", eshi, in renesas_soc_init()
434 pr_info("Detected Renesas %s %s %s\n", soc_dev_attr->family, in renesas_soc_init()
435 soc_dev_attr->soc_id, soc_dev_attr->revision ?: ""); in renesas_soc_init()
437 soc_dev = soc_device_register(soc_dev_attr); in renesas_soc_init()
439 kfree(soc_dev_attr->revision); in renesas_soc_init()
440 kfree_const(soc_dev_attr->soc_id); in renesas_soc_init()
441 kfree_const(soc_dev_attr->family); in renesas_soc_init()
442 kfree(soc_dev_attr); in renesas_soc_init()