Commit 75347e30 authored by Ramona Bolboaca's avatar Ramona Bolboaca Committed by Jonathan Cameron

drivers: iio: accel: Use warning if invalid device id is detected

Use warning instead of failing driver probe if invalid device id is
detected for ADXL355 device.
Signed-off-by: default avatarRamona Bolboaca <ramona.bolboaca@analog.com>
Link: https://lore.kernel.org/r/20221031105129.47740-2-ramona.bolboaca@analog.comSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 9b490152
...@@ -262,10 +262,8 @@ static int adxl355_setup(struct adxl355_data *data) ...@@ -262,10 +262,8 @@ static int adxl355_setup(struct adxl355_data *data)
if (ret) if (ret)
return ret; return ret;
if (regval != ADXL355_PARTID_VAL) { if (regval != ADXL355_PARTID_VAL)
dev_err(data->dev, "Invalid DEV ID 0x%02x\n", regval); dev_warn(data->dev, "Invalid DEV ID 0x%02x\n", regval);
return -ENODEV;
}
/* /*
* Perform a software reset to make sure the device is in a consistent * Perform a software reset to make sure the device is in a consistent
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment