staging: iio: fix up merge error
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Sep 2014 14:54:10 +0000 (07:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Sep 2014 14:54:10 +0000 (07:54 -0700)
Fix up a build merge error in drivers/iio/accel/bma180.c that I caused.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/accel/bma180.c

index f081b007f7d2bf7a3cdae95754b10efad7ca57e8..1096da327130526080139e628fdd0a0130d32861 100644 (file)
@@ -748,7 +748,7 @@ static int bma180_probe(struct i2c_client *client,
                data->trig->dev.parent = &client->dev;
                data->trig->ops = &bma180_trigger_ops;
                iio_trigger_set_drvdata(data->trig, indio_dev);
-               indio_dev->trig = iio_trigger_get(trig);
+               indio_dev->trig = iio_trigger_get(data->trig);
 
                ret = iio_trigger_register(data->trig);
                if (ret)