Lines Matching refs:genpd_dev
2340 struct device *genpd_dev; in genpd_dev_pm_attach_by_id() local
2354 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()
2375 pm_runtime_enable(genpd_dev); in genpd_dev_pm_attach_by_id()
2376 genpd_queue_power_off_work(dev_to_genpd(genpd_dev)); in genpd_dev_pm_attach_by_id()
2378 return genpd_dev; in genpd_dev_pm_attach_by_id()