Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236106
b: refs/heads/master
c: ecc1058
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Feb 23, 2011
1 parent 0a77b6d commit 064604c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 28 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: ae9f66da3d7e2f4ffa1bb6b07e62cddcb7614fa6
refs/heads/master: ecc1058aecd986b9f00ba0b4b6ff3681dfb3ab47
8 changes: 1 addition & 7 deletions trunk/drivers/staging/iio/magnetometer/ak8975.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <linux/delay.h>

#include <linux/gpio.h>
#include <linux/input/ak8975.h>

#include "../iio.h"
#include "magnet.h"
Expand Down Expand Up @@ -436,7 +435,6 @@ static int ak8975_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
struct ak8975_data *data;
struct ak8975_platform_data *pdata;
int err;

/* Allocate our device context. */
Expand All @@ -454,11 +452,7 @@ static int ak8975_probe(struct i2c_client *client,

/* Grab and set up the supplied GPIO. */
data->eoc_irq = client->irq;
pdata = client->dev.platform_data;
if (pdata)
data->eoc_gpio = pdata->gpio;
else
data->eoc_gpio = irq_to_gpio(client->irq);
data->eoc_gpio = irq_to_gpio(client->irq);

if (!data->eoc_gpio) {
dev_err(&client->dev, "failed, no valid GPIO\n");
Expand Down
20 changes: 0 additions & 20 deletions trunk/include/linux/input/ak8975.h

This file was deleted.

0 comments on commit 064604c

Please sign in to comment.