summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2011-02-23 14:12:25 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-23 14:12:25 -0800
commitecc1058aecd986b9f00ba0b4b6ff3681dfb3ab47 (patch)
treec051ac05ff855bffc737bf6e24d63476e202ac09 /drivers
parentae9f66da3d7e2f4ffa1bb6b07e62cddcb7614fa6 (diff)
Revert "staging: iio: ak8975: add platform data."
This reverts commit f2f1794835f1d8900d2b15d114c54e70c849809b. It should not be putting code into the include/input/ directory, and lots of other people have complained about it. Cc: Tony SIM <chinyeow.sim.xt@renesas.com> Cc: Andrew Chew <achew@nvidia.com> Cc: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/iio/magnetometer/ak8975.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/staging/iio/magnetometer/ak8975.c b/drivers/staging/iio/magnetometer/ak8975.c
index 80c0f4137076..420f206cf517 100644
--- a/drivers/staging/iio/magnetometer/ak8975.c
+++ b/drivers/staging/iio/magnetometer/ak8975.c
@@ -29,7 +29,6 @@
#include <linux/delay.h>
#include <linux/gpio.h>
-#include <linux/input/ak8975.h>
#include "../iio.h"
#include "magnet.h"
@@ -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. */
@@ -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");