Searched refs:genpd_dev (Results 1 – 1 of 1) sorted by relevance
2340 struct device *genpd_dev; in genpd_dev_pm_attach_by_id() local2354 genpd_dev = kzalloc(sizeof(*genpd_dev), GFP_KERNEL); in genpd_dev_pm_attach_by_id()2355 if (!genpd_dev) in genpd_dev_pm_attach_by_id()2358 dev_set_name(genpd_dev, "genpd:%u:%s", index, dev_name(dev)); in genpd_dev_pm_attach_by_id()2359 genpd_dev->bus = &genpd_bus_type; in genpd_dev_pm_attach_by_id()2360 genpd_dev->release = genpd_release_dev; in genpd_dev_pm_attach_by_id()2362 ret = device_register(genpd_dev); in genpd_dev_pm_attach_by_id()2364 kfree(genpd_dev); in genpd_dev_pm_attach_by_id()2369 ret = __genpd_dev_pm_attach(genpd_dev, dev->of_node, index, false); in genpd_dev_pm_attach_by_id()2371 device_unregister(genpd_dev); in genpd_dev_pm_attach_by_id()[all …]