Lines Matching refs:dev_root
303 struct device *cpu_dev, *dev_root; in pseries_energy_init() local
309 dev_root = bus_get_dev_root(&cpu_subsys); in pseries_energy_init()
310 if (dev_root) { in pseries_energy_init()
311 err = device_create_file(dev_root, &attr_cpu_activate_hint_list); in pseries_energy_init()
313 err = device_create_file(dev_root, &attr_cpu_deactivate_hint_list); in pseries_energy_init()
314 put_device(dev_root); in pseries_energy_init()
342 struct device *cpu_dev, *dev_root; in pseries_energy_cleanup() local
348 dev_root = bus_get_dev_root(&cpu_subsys); in pseries_energy_cleanup()
349 if (dev_root) { in pseries_energy_cleanup()
350 device_remove_file(dev_root, &attr_cpu_activate_hint_list); in pseries_energy_cleanup()
351 device_remove_file(dev_root, &attr_cpu_deactivate_hint_list); in pseries_energy_cleanup()
352 put_device(dev_root); in pseries_energy_cleanup()