Lines Matching refs:soc_dev_attr
50 struct soc_device_attribute *soc_dev_attr; in exynos_chipid_early_init() local
68 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in exynos_chipid_early_init()
69 if (!soc_dev_attr) in exynos_chipid_early_init()
72 soc_dev_attr->family = "Samsung Exynos"; in exynos_chipid_early_init()
75 of_property_read_string(root, "model", &soc_dev_attr->machine); in exynos_chipid_early_init()
78 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%x", revision); in exynos_chipid_early_init()
79 soc_dev_attr->soc_id = product_id_to_soc_id(product_id); in exynos_chipid_early_init()
80 if (!soc_dev_attr->soc_id) { in exynos_chipid_early_init()
87 soc_dev = soc_device_register(soc_dev_attr); in exynos_chipid_early_init()
95 soc_dev_attr->soc_id, product_id, revision); in exynos_chipid_early_init()
100 kfree(soc_dev_attr->revision); in exynos_chipid_early_init()
101 kfree(soc_dev_attr); in exynos_chipid_early_init()