We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f637bfe commit d5c38eeCopy full SHA for d5c38ee
drivers/thermal/thermal-generic-adc.c
@@ -131,12 +131,8 @@ static int gadc_thermal_probe(struct platform_device *pdev)
131
return -ENOMEM;
132
133
gti->channel = devm_iio_channel_get(dev, "sensor-channel");
134
- if (IS_ERR(gti->channel)) {
135
- ret = PTR_ERR(gti->channel);
136
- if (ret != -EPROBE_DEFER)
137
- dev_err(dev, "IIO channel not found: %d\n", ret);
138
- return ret;
139
- }
+ if (IS_ERR(gti->channel))
+ return dev_err_probe(dev, PTR_ERR(gti->channel), "IIO channel not found\n");
140
141
ret = gadc_thermal_read_linear_lookup_table(dev, gti);
142
if (ret < 0)
0 commit comments