Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325495
b: refs/heads/master
c: 4922fd6
h: refs/heads/master
i:
  325493: 599f4c2
  325491: 96e1dd7
  325487: 4f49860
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Jonathan Cameron committed Sep 22, 2012
1 parent 52ebd14 commit f06d4bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: db314a1aaa2c0aa262f24e14c81b91b09e72e470
refs/heads/master: 4922fd697a573cfc519668b3013a7f8de97c4ae7
9 changes: 2 additions & 7 deletions trunk/drivers/staging/iio/meter/ade7758_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -966,13 +966,9 @@ static int __devexit ade7758_remove(struct spi_device *spi)
{
struct iio_dev *indio_dev = spi_get_drvdata(spi);
struct ade7758_state *st = iio_priv(indio_dev);
int ret;

iio_device_unregister(indio_dev);
ret = ade7758_stop_device(&indio_dev->dev);
if (ret)
goto err_ret;

ade7758_stop_device(&indio_dev->dev);
ade7758_remove_trigger(indio_dev);
ade7758_uninitialize_ring(indio_dev);
ade7758_unconfigure_ring(indio_dev);
Expand All @@ -981,8 +977,7 @@ static int __devexit ade7758_remove(struct spi_device *spi)

iio_device_free(indio_dev);

err_ret:
return ret;
return 0;
}

static const struct spi_device_id ade7758_id[] = {
Expand Down

0 comments on commit f06d4bb

Please sign in to comment.