Merge tag 's390-5.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
[linux-2.6-microblaze.git] / drivers / hwmon / sparx5-temp.c
index 1a2b102..98be48e 100644 (file)
@@ -56,7 +56,7 @@ static int s5_read(struct device *dev, enum hwmon_sensor_types type,
        case hwmon_temp_input:
                stat = readl_relaxed(hwmon->base + TEMP_STAT);
                if (!(stat & TEMP_STAT_VALID))
-                       return -EIO;
+                       return -EAGAIN;
                value = stat & TEMP_STAT_TEMP;
                /*
                 * From register documentation: