Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249258
b: refs/heads/master
c: 1810b3b
h: refs/heads/master
v: v3
  • Loading branch information
Michael Hennerich authored and Greg Kroah-Hartman committed May 3, 2011
1 parent fc61f2e commit 799334a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7dd04eb04e0cf6593ff8ee30e9a4a403c1256834
refs/heads/master: 1810b3bb7bfeaad1fa782235ff0d06c30d6cbf06
8 changes: 3 additions & 5 deletions trunk/drivers/staging/iio/gyro/adxrs450_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,9 @@ static int adxrs450_initial_setup(struct adxrs450_state *st)
ret = adxrs450_spi_initial(st, &t, 1);
if (ret)
return ret;
if (t != 0x01) {
dev_err(&st->us->dev, "The initial response is not correct!\n");
return -ENODEV;

}
if (t != 0x01)
dev_warn(&st->us->dev, "The initial power on response "
"is not correct! Restart without reset?\n");

msleep(ADXRS450_STARTUP_DELAY);
ret = adxrs450_spi_initial(st, &t, 0);
Expand Down

0 comments on commit 799334a

Please sign in to comment.