[PATCH 5.15 026/279] powercap: call put_device() on an error path in powercap_register_control_type()