projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
462519f
)
crypto: omap-sham - remove the sysfs group during driver removal
author
Tero Kristo
<t-kristo@ti.com>
Tue, 5 Nov 2019 14:00:51 +0000
(16:00 +0200)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 11 Dec 2019 08:36:57 +0000
(16:36 +0800)
The driver removal should also cleanup the created sysfs group. If not,
the driver fails the subsequent probe as the files exist already.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/omap-sham.c
b/drivers/crypto/omap-sham.c
index
2e94355
..
0bf07a7
100644
(file)
--- a/
drivers/crypto/omap-sham.c
+++ b/
drivers/crypto/omap-sham.c
@@
-2270,6
+2270,8
@@
static int omap_sham_remove(struct platform_device *pdev)
if (!dd->polling_mode)
dma_release_channel(dd->dma_lch);
+ sysfs_remove_group(&dd->dev->kobj, &omap_sham_attr_group);
+
return 0;
}