Lines Matching refs:soc_dev_attr
310 struct soc_device_attribute *soc_dev_attr; in renesas_soc_init() local
377 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in renesas_soc_init()
378 if (!soc_dev_attr) in renesas_soc_init()
382 of_property_read_string(np, "model", &soc_dev_attr->machine); in renesas_soc_init()
385 soc_dev_attr->family = kstrdup_const(family->name, GFP_KERNEL); in renesas_soc_init()
386 soc_dev_attr->soc_id = kstrdup_const(strchr(match->compatible, ',') + 1, in renesas_soc_init()
389 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "ES%u.%u", eshi, in renesas_soc_init()
392 pr_info("Detected Renesas %s %s %s\n", soc_dev_attr->family, in renesas_soc_init()
393 soc_dev_attr->soc_id, soc_dev_attr->revision ?: ""); in renesas_soc_init()
395 soc_dev = soc_device_register(soc_dev_attr); in renesas_soc_init()
397 kfree(soc_dev_attr->revision); in renesas_soc_init()
398 kfree_const(soc_dev_attr->soc_id); in renesas_soc_init()
399 kfree_const(soc_dev_attr->family); in renesas_soc_init()
400 kfree(soc_dev_attr); in renesas_soc_init()