Message ID | 20191017122549.4634-3-t-kristo@ti.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp847646ill; Thu, 17 Oct 2019 05:26:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNmCnUWI5GuZCAK9gtTiVkNdU5O/Xz59e4CY1dsV6mm7i6GB0X6Po48Zaov6Ud//yybrta X-Received: by 2002:a50:e606:: with SMTP id y6mr3390308edm.261.1571315177249; Thu, 17 Oct 2019 05:26:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571315177; cv=none; d=google.com; s=arc-20160816; b=oIyEjuR60PrJ6eXBSEZ5FOXE5xVdAgsk3Ouqr2Hyrt3l7X/hA6y6+du7eYeuIawTGH vavbn6F969LxxGxo8WyVw5bh8WQmG9qoocBeUNBDhXgiPV9nDf3PGojppoUTT6nRYS7x FBIf3HGJzQfP1ACghgiS7vLTE4ipybNIwjMrqw+PrqpY5tZ+zC6PID+y5y0JyBExkSdU phnenppCvKu2c0kruSjbVrYdyqqTJzdiXcEiTnHztbh4XZxJHUIWuM1pipcNn6FnwshW nv1ZaS+oNB144jW+42zjxNtGxgQ8B9e2ahePbMX46gAC39uk3uabnICByNrkvLgPsR/U 07yQ== 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=e7LZngbYAitVYH/jffSefiRAjst0xaTMqMrPnAtoXHSnmlt6GMFz4AhBMEGqO+n9EP SZUUdHn+y0nSIaJCpL5dj4XLKB5kh0H/WTEuHmNge3BrDo2bnxw/jveGVfoeRr5rZiKW VezFJYuGZTB8foMPffTlT/0TgKx6dKRsIVSTQInxpKWFDnxBspJm4+GW1ZOk5JPG1l57 bYQDFh7Lkzt7GGH3bXPRhbLwrUKN5OtdZXT3U6GQwydfWbMHcQT5sRsrhpFl1p92PmRm FLwFrbfioixqIYw7PVbcHSs7mhNLN6QITdZd0cgeJUT4JLIxIT6vcdBSWEda3SCFWK7+ QSSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XX7LXUOb; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: <linux-omap-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15si1265537ejx.56.2019.10.17.05.26.16; Thu, 17 Oct 2019 05:26:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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=XX7LXUOb; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 S2406144AbfJQM0O (ORCPT <rfc822;kelley.spoon@linaro.org> + 5 others); Thu, 17 Oct 2019 08:26:14 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:50356 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729240AbfJQM0N (ORCPT <rfc822; linux-omap@vger.kernel.org>); Thu, 17 Oct 2019 08:26:13 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9HCQ5HR084573; Thu, 17 Oct 2019 07:26:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571315165; bh=LtkTVpWL6TMo5645N6f1i/Ciz76+fqNN9ZgDR0Mf4kQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=XX7LXUObavUFpH+Bscao7vNlsF6s2NSQLr9N0VW1LKOe8dE8AHDnMLH44yiN0Koee aLjftTjgvppWAxVfaxAnMpq3NNn9AtIGV+G4xP3dtRtS6Tk8qLbVL7Awvzi9lm7FRH BdpSPJfDBP7TWA04gNLH27/YIZeuFj4y1D2rf7Oo= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9HCQ5u5039171 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 17 Oct 2019 07:26:05 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 17 Oct 2019 07:26:04 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE107.ent.ti.com (10.64.6.28) 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; Thu, 17 Oct 2019 07:25:57 -0500 Received: from sokoban.bb.dnainternet.fi (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9HCPxNX073246; Thu, 17 Oct 2019 07:26:03 -0500 From: Tero Kristo <t-kristo@ti.com> To: <herbert@gondor.apana.org.au>, <davem@davemloft.net>, <linux-crypto@vger.kernel.org>, <ard.biesheuvel@linaro.org> CC: <linux-omap@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org> Subject: [PATCH 02/10] crypto: omap-sham: remove the sysfs group during driver removal Date: Thu, 17 Oct 2019 15:25:41 +0300 Message-ID: <20191017122549.4634-3-t-kristo@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191017122549.4634-1-t-kristo@ti.com> References: <20191017122549.4634-1-t-kristo@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: <linux-omap.vger.kernel.org> X-Mailing-List: linux-omap@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