[PATCHv2,02/22] crypto: omap-sham: remove the sysfs group during driver removal
diff mbox series

Message ID 20191105140111.20285-3-t-kristo@ti.com
State New
Headers show
  • crypto: omap-sham: fixes towards 5.5
Related show

Commit Message

Tero Kristo Nov. 5, 2019, 2 p.m. UTC
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>
 drivers/crypto/omap-sham.c | 2 ++
 1 file changed, 2 insertions(+)

diff mbox series

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)
+	sysfs_remove_group(&dd->dev->kobj, &omap_sham_attr_group);
 	return 0;