aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/adcxx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/adcxx.c')
-rw-r--r--drivers/hwmon/adcxx.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hwmon/adcxx.c b/drivers/hwmon/adcxx.c
index 751b1f0264a4..04c08c2f79b8 100644
--- a/drivers/hwmon/adcxx.c
+++ b/drivers/hwmon/adcxx.c
@@ -203,7 +203,6 @@ out_err:
203 for (i--; i >= 0; i--) 203 for (i--; i >= 0; i--)
204 device_remove_file(&spi->dev, &ad_input[i].dev_attr); 204 device_remove_file(&spi->dev, &ad_input[i].dev_attr);
205 205
206 spi_set_drvdata(spi, NULL);
207 mutex_unlock(&adc->lock); 206 mutex_unlock(&adc->lock);
208 return status; 207 return status;
209} 208}
@@ -218,7 +217,6 @@ static int adcxx_remove(struct spi_device *spi)
218 for (i = 0; i < 3 + adc->channels; i++) 217 for (i = 0; i < 3 + adc->channels; i++)
219 device_remove_file(&spi->dev, &ad_input[i].dev_attr); 218 device_remove_file(&spi->dev, &ad_input[i].dev_attr);
220 219
221 spi_set_drvdata(spi, NULL);
222 mutex_unlock(&adc->lock); 220 mutex_unlock(&adc->lock);
223 221
224 return 0; 222 return 0;