[PATCH 5.15 045/139] hwmon: Handle failure to register sensor with thermal zone correctly