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