Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268530
b: refs/heads/master
c: f6d838d
h: refs/heads/master
v: v3
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Sep 27, 2011
1 parent b2e45f7 commit fe759f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 6ddbb08af050948a7dda0fb5db6bf6bc01d54528
refs/heads/master: f6d838d7fecfd4e59a4ce7bdfb16165add36d26e
5 changes: 4 additions & 1 deletion trunk/drivers/staging/iio/magnetometer/ak8975.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,10 @@ static int ak8975_probe(struct i2c_client *client,
int err;

/* Grab and set up the supplied GPIO. */
eoc_gpio = irq_to_gpio(client->irq);
if (client->dev.platform_data == NULL)
eoc_gpio = -1;
else
eoc_gpio = *(int *)(client->dev.platform_data);

/* We may not have a GPIO based IRQ to scan, that is fine, we will
poll if so */
Expand Down

0 comments on commit fe759f2

Please sign in to comment.