Browse Source

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>
Tero Kristo 6 years ago
parent
commit
b4e22cd8a4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/crypto/omap-sham.c

+ 2 - 0
drivers/crypto/omap-sham.c

@@ -2276,6 +2276,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;
 }