From: Tero Kristo Date: Tue, 5 Nov 2019 14:00:51 +0000 (+0200) Subject: crypto: omap-sham - remove the sysfs group during driver removal X-Git-Tag: v5.6-rc1~152^2~208 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b82fc91e50dfb1ed5bac0b99604218e23a89a304;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c index 2e9435577ceae..0bf07a7c060be 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; }