Commit afbf50d1 authored by Alessandro Rubini's avatar Alessandro Rubini

acam: fix in error reporting

parent ee6f198b
......@@ -131,9 +131,9 @@ static int acam_test_addr_bit(struct spec_fd *fd, int base, int bit,
acam_writel(fd, reg, addr2); /* set the data mask */
if ((acam_readl(fd, addr1) & data) != 0)
return -EIO;
goto out;
if ((acam_readl(fd, addr2) & data) != data)
return -EIO;
goto out;
/* the other way around */
reg = acam_readl(fd, addr2) & ~data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment