aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/w1
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/w1')
-rw-r--r--drivers/w1/slaves/w1_therm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/w1/slaves/w1_therm.c b/drivers/w1/slaves/w1_therm.c
index 732db4780042..1a6937dc190b 100644
--- a/drivers/w1/slaves/w1_therm.c
+++ b/drivers/w1/slaves/w1_therm.c
@@ -191,11 +191,7 @@ static ssize_t w1_therm_read_bin(struct kobject *kobj, char *buf, loff_t off, si
191 191
192 w1_write_8(dev, W1_CONVERT_TEMP); 192 w1_write_8(dev, W1_CONVERT_TEMP);
193 193
194 while (tm) { 194 msleep(tm);
195 tm = msleep_interruptible(tm);
196 if (signal_pending(current))
197 flush_signals(current);
198 }
199 195
200 if (!w1_reset_select_slave(sl)) { 196 if (!w1_reset_select_slave(sl)) {
201 197