Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325493
b: refs/heads/master
c: d576c75
h: refs/heads/master
i:
  325491: 96e1dd7
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Jonathan Cameron committed Sep 22, 2012
1 parent ad78a20 commit 599f4c2
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 0b4ac3dce4093f426322be0eec0e38127a62bb7f
refs/heads/master: d576c7558616e3c096fca1f21531e1e50d2f27ca
11 changes: 3 additions & 8 deletions trunk/drivers/staging/iio/meter/ade7753.c
Original file line number Diff line number Diff line change
Expand Up @@ -557,18 +557,13 @@ static int __devinit ade7753_probe(struct spi_device *spi)
/* fixme, confirm ordering in this function */
static int __devexit ade7753_remove(struct spi_device *spi)
{
int ret;
struct iio_dev *indio_dev = spi_get_drvdata(spi);

iio_device_unregister(indio_dev);

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

ade7753_stop_device(&indio_dev->dev);
iio_device_free(indio_dev);
err_ret:
return ret;

return 0;
}

static struct spi_driver ade7753_driver = {
Expand Down

0 comments on commit 599f4c2

Please sign in to comment.