From: Alexander Shiyan Date: Thu, 8 May 2014 07:56:37 +0000 (+0400) Subject: w1: mxc_w1: Fix incorrect "presence" status X-Git-Tag: firefly_0821_release~176^2~3493^2~87 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7cbcb136a7d703f1bd590979a3d07348fe1bc81d;p=firefly-linux-kernel-4.4.55.git w1: mxc_w1: Fix incorrect "presence" status W1 reset_bus() should return zero if slave device is present. This patch fix this issue. Signed-off-by: Alexander Shiyan Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/w1/masters/mxc_w1.c b/drivers/w1/masters/mxc_w1.c index 67b067a3e2ab..a5df5e89d456 100644 --- a/drivers/w1/masters/mxc_w1.c +++ b/drivers/w1/masters/mxc_w1.c @@ -66,7 +66,7 @@ static u8 mxc_w1_ds2_reset_bus(void *data) udelay(100); } - return !!(reg_val & MXC_W1_CONTROL_PST); + return !(reg_val & MXC_W1_CONTROL_PST); } /*