diff options
author | Tero Kristo <t-kristo@ti.com> | 2019-11-05 17:00:51 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-12-11 11:36:57 +0300 |
commit | b82fc91e50dfb1ed5bac0b99604218e23a89a304 (patch) | |
tree | 1bab17867e2a354050c2f76b924b6a2177d92911 /drivers/crypto/omap-sham.c | |
parent | 462519fc26996a619f7c9cc5f5a34a73934219b9 (diff) | |
download | linux-b82fc91e50dfb1ed5bac0b99604218e23a89a304.tar.xz |
crypto: omap-sham - remove the sysfs group during driver removal
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>
Diffstat (limited to 'drivers/crypto/omap-sham.c')
-rw-r--r-- | drivers/crypto/omap-sham.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c index 2e9435577cea..0bf07a7c060b 100644 --- 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; } |