Message ID | 20191105140111.20285-3-t-kristo@ti.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp709186ocf; Tue, 5 Nov 2019 06:01:31 -0800 (PST) X-Google-Smtp-Source: APXvYqxaBMUCosoZxMvCTItHqqpZewV+G5z4sPFx3ydNrpm9VDl9b6R4d3cMUQkxwNqd3+no4/v5 X-Received: by 2002:adf:f306:: with SMTP id i6mr27347355wro.209.1572962490964; Tue, 05 Nov 2019 06:01:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572962490; cv=none; d=google.com; s=arc-20160816; b=xLdzhhC2YXUQvxIBRZIZGwjjXZybp/6KUXtbVFSLgqm1XUR5Lf4j2js2OUWKfXz9CE ARh7xOl4HcX3n2mWwI2IWrmvUVR/rLdjH4/nKuOHci3y1gPpn+gFkim7UC4H4ry8liYd 5zO+1U48EfMd1emRKQBCMHHb1I2nh1aNgaP1/MSzm/FFvfVjeK9mxKiCVsdYXWnbNctz QmhGF5MaCTu62Wwnky7plZe/+AND1Kqr1itYNPnnuRZT6hQaoSNg0YOjV9GTPJbSVl3O QwnX+/Q8KWHzL48EZnUaGLIys/sCrjWa/kSaZSLqL11IPMicjCuFEr/yXfly11RjGQYH XOHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=LtkTVpWL6TMo5645N6f1i/Ciz76+fqNN9ZgDR0Mf4kQ=; b=LTjY/SVU0V2rUJFXIwDicQs99VmE7JFMj4fiimdHmTNHtM5HZYQDTPjnypU2GpucZL O/fYoG/dCzBMXyD+++Hv31d+q8Yqw0AehnN0+YfVYvPHgWF2aIDR7+ta0OsYk3/Y+IEi YvAkyTszD7KJcKYZCbkFryeDT0WtH35UNjZj4x1MuzklKpo7q9fc00AYGKa/JBkuDzCZ 8RTdcLhPalk66AQcBTAG0iZO4z5exCMg6BpMHaIXdFgJoV6pJxClSuXxByI+Tcdc1eWm taKhjXWnr6zSlW986q4BmvZN19YAJKJo6asyvXt0A4I8wMJsbyYNU1UE1ZUM/JNdYtHw zZMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fF5JqDG8; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: <linux-crypto-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dk11si13340421ejb.97.2019.11.05.06.01.30; Tue, 05 Nov 2019 06:01:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fF5JqDG8; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389300AbfKEOB3 (ORCPT <rfc822;sumit.garg@linaro.org> + 3 others); Tue, 5 Nov 2019 09:01:29 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:43890 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389290AbfKEOB3 (ORCPT <rfc822;linux-crypto@vger.kernel.org>); Tue, 5 Nov 2019 09:01:29 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id xA5E1MQE071469; Tue, 5 Nov 2019 08:01:22 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1572962482; bh=LtkTVpWL6TMo5645N6f1i/Ciz76+fqNN9ZgDR0Mf4kQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=fF5JqDG8JDj3W8+d+8u0LXMQK3EEmlRBxS40lG8cW6/6rAwK45Jcr8l+BMChbNKl9 gqXQ79RMaSinl0Spzp0JRzxwHPauaYrPBd1+GRAwu4NwlKb8H4v+GBwFen6n46iZqd sGHeetRSAB5hAfdWeTttO2cEyaP73DBW9T6j/f08= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xA5E1Mo5007769 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 5 Nov 2019 08:01:22 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 5 Nov 2019 08:01:06 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Tue, 5 Nov 2019 08:01:06 -0600 Received: from sokoban.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id xA5E1FFf068289; Tue, 5 Nov 2019 08:01:19 -0600 From: Tero Kristo <t-kristo@ti.com> To: <herbert@gondor.apana.org.au>, <davem@davemloft.net>, <linux-crypto@vger.kernel.org> CC: <linux-omap@vger.kernel.org>, <ard.biesheuvel@kernel.org> Subject: [PATCHv2 02/22] crypto: omap-sham: remove the sysfs group during driver removal Date: Tue, 5 Nov 2019 16:00:51 +0200 Message-ID: <20191105140111.20285-3-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191105140111.20285-1-t-kristo@ti.com> References: <20191105140111.20285-1-t-kristo@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: <linux-crypto.vger.kernel.org> X-Mailing-List: linux-crypto@vger.kernel.org |
Series |
None
|
expand
|
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; }
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(+) -- 2.17.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki