[PATCH 6.1 136/313] thermal/core: fix error code in __thermal_cooling_device_register()