|
@@ -214,7 +214,7 @@ static int ds2482_wait_1wire_idle(struct ds2482_data *pdev)
|
|
(++retries < DS2482_WAIT_IDLE_TIMEOUT));
|
|
(++retries < DS2482_WAIT_IDLE_TIMEOUT));
|
|
}
|
|
}
|
|
|
|
|
|
- if (retries > DS2482_WAIT_IDLE_TIMEOUT)
|
|
|
|
|
|
+ if (retries >= DS2482_WAIT_IDLE_TIMEOUT)
|
|
printk(KERN_ERR "%s: timeout on channel %d\n",
|
|
printk(KERN_ERR "%s: timeout on channel %d\n",
|
|
__func__, pdev->channel);
|
|
__func__, pdev->channel);
|
|
|
|
|