[PATCH 5.10 122/227] thermal: int340x: Add NULL check for adev