Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325494
b: refs/heads/master
c: db314a1
h: refs/heads/master
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Jonathan Cameron committed Sep 22, 2012
1 parent 599f4c2 commit 52ebd14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 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: d576c7558616e3c096fca1f21531e1e50d2f27ca
refs/heads/master: db314a1aaa2c0aa262f24e14c81b91b09e72e470
10 changes: 2 additions & 8 deletions trunk/drivers/staging/iio/meter/ade7754.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,19 +579,13 @@ static int __devinit ade7754_probe(struct spi_device *spi)
/* fixme, confirm ordering in this function */
static int __devexit ade7754_remove(struct spi_device *spi)
{
int ret;
struct iio_dev *indio_dev = spi_get_drvdata(spi);

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

ade7754_stop_device(&indio_dev->dev);
iio_device_free(indio_dev);

err_ret:
return ret;

return 0;
}

static struct spi_driver ade7754_driver = {
Expand Down

0 comments on commit 52ebd14

Please sign in to comment.