From patchwork Sun Jul 16 14:11:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 120902 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp643079vqt; Sun, 16 Jul 2023 07:30:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlEpIuoshncGey3PBXF/l87aVDuaQfaoVK1pbjnWHy8FPzQebyrvZRD46l9FEzV3IkBINwjG X-Received: by 2002:a05:6a20:9382:b0:134:9c14:d566 with SMTP id x2-20020a056a20938200b001349c14d566mr2191568pzh.30.1689517811400; Sun, 16 Jul 2023 07:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689517811; cv=none; d=google.com; s=arc-20160816; b=Qp0WyWnh87iqwI5TMXy5d8FZBziRCfGwQany2kb21ZcHXsTZ7gZMqOmvkUKCbVQuAS bUT6d0c/lKArSyLA3g4gYdyqjSxisLzmeTjMJ4+rYqT+uh/yaM5z7uxYyP+mxEwob1ZE 7XZAmsiO2+IFCiWzWLEsKRXneM90nHiTH/C4JS3lx1a8lrgkqRouLcXwuquEx1dxc/BK DS5tIR2XNUeWo0I62Uf10Ye7/slZBYzeB2IfKizP3o4xxc8qC2c6GKpKr1h8+Qlah1rR dVOj6cgdyDhvQcozoYqXSoah/Y+BXef/u4969S0hzrFXwu2GmzIY3PkAFDiU0Aq+PAOI h94A== 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 :message-id:date:subject:cc:to:from; bh=RGOmnbbn9Z5s2A3lXxomq17b9/vkVlhI5+ZV7Gkn2WI=; fh=dVfXhkbP60ZT4KVr26y6imwTSq8xUCJNaPCgpFL70HA=; b=l6Aqy7PoA1cZbSFamTBIGW6UOKknJOIvTL+WdNrp2i1yD2QvL6Jb/Rie1nOQrS6pZA vETXTwwte6DeZC1vWZtqkiSJ/QkOGh5ga+a6GhvxtXTJ4jSoLKpxBji283irV8pPaBG0 SAp1Qf5fBWGVi4XB1x4qwP2VB4lRfyQKbup43/0yQdL+EAd8P/oyTFKTnP4KjrIsf9Kj g8gZV1MiWbUD3/gzkCYi2d6uDJr2lBUmqugnOD8dLnr3ODjPpebShUq5QSIQAokBCchl KOaHQs9t9cPGtjrm/Bj3t/d+KPZTC3i079jjfFCKRmVyTj307DDK3em3ReSMc36CO12j gQnA== 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 j63-20020a638042000000b0055f11843b1csi4525202pgd.142.2023.07.16.07.29.51; Sun, 16 Jul 2023 07:30:11 -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 S230076AbjGPONZ (ORCPT + 99 others); Sun, 16 Jul 2023 10:13:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjGPONX (ORCPT ); Sun, 16 Jul 2023 10:13:23 -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 3BB9EBA; Sun, 16 Jul 2023 07:13:22 -0700 (PDT) Received: from dslb-188-097-046-249.188.097.pools.vodafone-ip.de ([188.97.46.249] 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 1qL2Uw-0007lT-JM; Sun, 16 Jul 2023 16:13:18 +0200 From: Martin Kaiser To: Herbert Xu Cc: linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH] hwrng: arm-smccc-trng - don't set drvdata Date: Sun, 16 Jul 2023 16:11:12 +0200 Message-Id: <20230716141112.699543-1-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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: 1771587828880296190 X-GMAIL-MSGID: 1771587828880296190 Don't set drvdata, there's nobody who reads it. Signed-off-by: Martin Kaiser --- drivers/char/hw_random/arm_smccc_trng.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/char/hw_random/arm_smccc_trng.c b/drivers/char/hw_random/arm_smccc_trng.c index e34c3ea692b6..7e954341b09f 100644 --- a/drivers/char/hw_random/arm_smccc_trng.c +++ b/drivers/char/hw_random/arm_smccc_trng.c @@ -105,8 +105,6 @@ static int smccc_trng_probe(struct platform_device *pdev) trng->name = "smccc_trng"; trng->read = smccc_trng_read; - platform_set_drvdata(pdev, trng); - return devm_hwrng_register(&pdev->dev, trng); }