OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d2111e
)
staging: iio: call iio_device_unregister() in max517_remove()
author
Peter Meerwald
<pmeerw@pmeerw.net>
Tue, 1 May 2012 23:13:33 +0000
(
01:13
+0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 2 May 2012 22:53:43 +0000
(15:53 -0700)
Reported-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/dac/max517.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/dac/max517.c
b/drivers/staging/iio/dac/max517.c
index
a3f588d
..
65d6349
100644
(file)
--- a/
drivers/staging/iio/dac/max517.c
+++ b/
drivers/staging/iio/dac/max517.c
@@
-264,6
+264,7
@@
exit:
static int max517_remove(struct i2c_client *client)
{
+ iio_device_unregister(i2c_get_clientdata(client));
iio_device_free(i2c_get_clientdata(client));
return 0;