From patchwork Thu Jul 13 07:04:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 119580 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1646288vqm; Thu, 13 Jul 2023 00:21:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlG5IckC9E2DbBPfKrlw3cj9l0T9PFCe3Cginp5HSV54/+N+oFClAG9kYHvxu4Z8G35jHNfN X-Received: by 2002:a05:6402:b2e:b0:51b:dcb4:a9b3 with SMTP id bo14-20020a0564020b2e00b0051bdcb4a9b3mr1098105edb.24.1689232870342; Thu, 13 Jul 2023 00:21:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689232870; cv=none; d=google.com; s=arc-20160816; b=vg5WQQJYUjbP2aPzx2l1IXYvxEi3i5cetUaQOCD2gV3l3f52sdcHWMZGcQIecMLxh7 Qu7eYCXeuWsiUcKIBybCvTmPoyKdEXnYwYYqZIT3IEquDrRbd75rXgnPrpbHQqsiVJNm xuJ58ZliqitTn4LjFdCfiBKXSQ3GoUyuE4U12jbafTon21OyCJjlD+BtvlFG2KCpowow nmQTs/2NM0wmMH52zD0jYnklrKcvY+NZfDtAY8Wtj3kNBNRlTFj1fO3rw1/T+DY2/0SW zDgDSOeiGZdX/2cY5Pqjno2VDZKuQFNnojxCEI88QzemmZ3dqQTO9MLKOfXqFWXATOCL xyZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Wm4x8si5FXnRU4IMU0ueJyp6KzNdapIVUMnL6Zho1EM=; fh=E5JFeCCQh9Lu/4SbiHM0xXDZNRS+26I/orGAtH3zI6M=; b=Ni08/KHnWbSaSH9q0+V1ut0BjVyDsT3q/e9Ia9A1oGgrdqZDpeVp8jm25TWtTs8kwj L7pZoWu+NrQgwyP+RoTnCNF7C1AHJmtIxB8swcvMZmNqFsd3Ygf2XJLBIa/OeWgSZSF9 dJncSkj5JbjJYrWNcJ32nSWG2vbn1bKsIrmu/JDp0G5Zt1M2/twU7cp5Pe+Fs4vXmSHp iYEHORsKaY+PDv+0qcr54hM4KRCoe299O6EHgME7RkRy70Czwx5vmj4/2ScBhMKEkhu9 SGbxUgaIIaBdcD6aRLdSitkRfRO+AOVG5BQYK7gjXLOVJe/csnaFdabisEzhYehCgsR4 G3GA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020aa7c30c000000b0051e0cc6d8c2si6679789edq.474.2023.07.13.00.20.46; Thu, 13 Jul 2023 00:21:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234109AbjGMHGu (ORCPT + 99 others); Thu, 13 Jul 2023 03:06:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233946AbjGMHGm (ORCPT ); Thu, 13 Jul 2023 03:06:42 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35B68E69; Thu, 13 Jul 2023 00:06:40 -0700 (PDT) Received: from 74.172.62.81.static.wline.lns.sme.cust.swisscom.ch ([81.62.172.74] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1qJqPL-0004KN-Rg; Thu, 13 Jul 2023 09:06:35 +0200 From: Martin Kaiser To: Herbert Xu Cc: olivier@sobrie.be, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 1/3] hwrng: ba431 - do not set drvdata Date: Thu, 13 Jul 2023 09:04:44 +0200 Message-Id: <20230713070446.230978-2-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230713070446.230978-1-martin@kaiser.cx> References: <20230713070446.230978-1-martin@kaiser.cx> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771289045971791262 X-GMAIL-MSGID: 1771289045971791262 Do not set drvdata in the ba431 driver. Nobody is using it. Signed-off-by: Martin Kaiser --- drivers/char/hw_random/ba431-rng.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/char/hw_random/ba431-rng.c b/drivers/char/hw_random/ba431-rng.c index 5b7ca0416490..b1518dd52a24 100644 --- a/drivers/char/hw_random/ba431-rng.c +++ b/drivers/char/hw_random/ba431-rng.c @@ -189,8 +189,6 @@ static int ba431_trng_probe(struct platform_device *pdev) ba431->rng.cleanup = ba431_trng_cleanup; ba431->rng.read = ba431_trng_read; - platform_set_drvdata(pdev, ba431); - ret = devm_hwrng_register(&pdev->dev, &ba431->rng); if (ret) { dev_err(&pdev->dev, "BA431 registration failed (%d)\n", ret);