projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
217494e
)
staging: iio: ad7606_par: Remove redundant platform_set_drvdata()
author
Sachin Kamat
<sachin.kamat@linaro.org>
Thu, 6 Jun 2013 09:27:00 +0000
(10:27 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Thu, 6 Jun 2013 18:31:43 +0000
(19:31 +0100)
Commit
0998d06310
(device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Michael Hennerich <hennerich@blackfin.uclinux.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7606_par.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/adc/ad7606_par.c
b/drivers/staging/iio/adc/ad7606_par.c
index 58cfddea96379ad1dd12039f615f57958e39e768..8a48d18de788de8731d9d7201529049e469bd9f8 100644
(file)
--- a/
drivers/staging/iio/adc/ad7606_par.c
+++ b/
drivers/staging/iio/adc/ad7606_par.c
@@
-112,8
+112,6
@@
static int ad7606_par_remove(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
release_mem_region(res->start, resource_size(res));
- platform_set_drvdata(pdev, NULL);
-
return 0;
}