summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pmbus/pxe1610.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/pmbus/pxe1610.c')
-rw-r--r--drivers/hwmon/pmbus/pxe1610.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/hwmon/pmbus/pxe1610.c b/drivers/hwmon/pmbus/pxe1610.c
index da27ce34ee3f..eb4a06003b7f 100644
--- a/drivers/hwmon/pmbus/pxe1610.c
+++ b/drivers/hwmon/pmbus/pxe1610.c
@@ -41,6 +41,15 @@ static int pxe1610_identify(struct i2c_client *client,
info->vrm_version[i] = vr13;
break;
default:
+ /*
+ * If prior pages are available limit operation
+ * to them
+ */
+ if (i != 0) {
+ info->pages = i;
+ return 0;
+ }
+
return -ENODEV;
}
}