Searched refs:cooling_devs (Results 1 – 1 of 1) sorted by relevance
84 struct qmp_cooling_device *cooling_devs; member389 qmp->cooling_devs = devm_kcalloc(qmp->dev, QMP_NUM_COOLING_RESOURCES, in qmp_cooling_devices_register()390 sizeof(*qmp->cooling_devs), in qmp_cooling_devices_register()393 if (!qmp->cooling_devs) in qmp_cooling_devices_register()399 ret = qmp_cooling_device_add(qmp, &qmp->cooling_devs[count++], in qmp_cooling_devices_register()408 devm_kfree(qmp->dev, qmp->cooling_devs); in qmp_cooling_devices_register()415 (qmp->cooling_devs[count].cdev); in qmp_cooling_devices_register()416 devm_kfree(qmp->dev, qmp->cooling_devs); in qmp_cooling_devices_register()426 thermal_cooling_device_unregister(qmp->cooling_devs[i].cdev); in qmp_cooling_devices_remove()