projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c06ca9a
)
uio: uio_pruss: remove unnecessary platform_set_drvdata()
author
Jingoo Han
<
[email protected]
>
Thu, 22 Aug 2013 02:09:12 +0000
(11:09 +0900)
committer
Greg Kroah-Hartman
<
[email protected]
>
Wed, 28 Aug 2013 04:39:16 +0000
(21:39 -0700)
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: Jingoo Han <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/uio/uio_pruss.c
patch
|
blob
|
history
diff --git
a/drivers/uio/uio_pruss.c
b/drivers/uio/uio_pruss.c
index 21f7a72301e43536867b1353cc79541652e5b05b..df7534613e5e8b85b62ac4d0b401f26862b21530 100644
(file)
--- a/
drivers/uio/uio_pruss.c
+++ b/
drivers/uio/uio_pruss.c
@@
-224,7
+224,6
@@
static int pruss_remove(struct platform_device *dev)
struct uio_pruss_dev *gdev = platform_get_drvdata(dev);
pruss_cleanup(dev, gdev);
- platform_set_drvdata(dev, NULL);
return 0;
}