From patchwork Mon Jan 30 15:15:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1734272 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=ZMLfnRpY; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P5DLk3nJ5z23hS for ; Tue, 31 Jan 2023 03:35:26 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 338738593E; Mon, 30 Jan 2023 17:35:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="ZMLfnRpY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 300D0859A7; Mon, 30 Jan 2023 16:19:51 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CAACA859B4 for ; Mon, 30 Jan 2023 16:19:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x129.google.com with SMTP id d10so5208467ilc.12 for ; Mon, 30 Jan 2023 07:19:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4hGIIcL9WsgSyDSlPl/8BHjxPoB5ywTAV2pf4ZEQzXE=; b=ZMLfnRpYeBd7kpTt9Hqk3Ur3+QnPLuSYympsF21IgPTEUCe997CKkU7NRtcuYpknrN Lw0tqyyeeMdKTFMW/EtNmw4b4dFrtRLR+1cITEb9VWECBlGwLKKSJTri4Otu8fbUn8ai Gfues48m752V7fVkAmeNTkxyZUKWspM6ENlEw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4hGIIcL9WsgSyDSlPl/8BHjxPoB5ywTAV2pf4ZEQzXE=; b=DVjtM7zzVrLZHbMhJRFcksZOfAbeM85VuRcqSL4mAxWrEpnKOUO6L8XG8vIV5ee3Fk Nc9Dm6MA1UeCEs0BK0naOFVboi+jCiqZCCXStl9KuNJ6y7iTex660I1M7CA4hPnPBtjN 6XCrsxT99huGgNlfrg1ycWI9TBuvw+0864RLm2ZLdQvvb/ArMxf4Nwdz85dV7Iwt/JJ5 fYvM/p0BuWjummfRm0MllNnH08+IPCPJ1bJxT2BvUxc7jlZ8rW50ztE/1cUs2cOKLS5Z DgiDY56MKGt69D9aj+0RWtvoKwhpBQnlCd4L1fCimYHtKZXmsXTMozz6zpzjUi201K79 cabw== X-Gm-Message-State: AO0yUKXpEmL7evl9kAdnIyszut6cjkmbfAdUnqoluVjQOge3PwFysK+m yuDu2R9swAX4RKSBWfASKVqPAAvq60V0IKhY X-Google-Smtp-Source: AK7set8qCxs/Zz93MQr24mck+YgVeNGZLM+NcGQFEt9eDXJG/Kq3LSL9dS2SqiJN5cqaoJBUYxmuGw== X-Received: by 2002:a05:6e02:1a42:b0:310:ac4e:cb7a with SMTP id u2-20020a056e021a4200b00310ac4ecb7amr14747471ilv.6.1675091886512; Mon, 30 Jan 2023 07:18:06 -0800 (PST) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id o13-20020a92d38d000000b00302bb083c2bsm4103194ilo.21.2023.01.30.07.18.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 07:18:06 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Ilias Apalodimas Subject: [PATCH 157/171] Correct SPL use of TPM_RNG Date: Mon, 30 Jan 2023 08:15:58 -0700 Message-Id: <20230130151612.212732-158-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog In-Reply-To: <20230130151612.212732-102-sjg@chromium.org> References: <20230130151612.212732-102-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean This converts 1 usage of this option to the non-SPL form, since there is no SPL_TPM_RNG defined in Kconfig Signed-off-by: Simon Glass --- drivers/tpm/tpm-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tpm/tpm-uclass.c b/drivers/tpm/tpm-uclass.c index 5ff0cd3958c..b2286f7e7ed 100644 --- a/drivers/tpm/tpm-uclass.c +++ b/drivers/tpm/tpm-uclass.c @@ -156,7 +156,7 @@ static int tpm_uclass_post_probe(struct udevice *dev) const char *drv = TPM_RNG_DRV_NAME; struct udevice *child; - if (CONFIG_IS_ENABLED(TPM_RNG)) { + if (IS_ENABLED(CONFIG_TPM_RNG)) { ret = device_find_first_child_by_uclass(dev, UCLASS_RNG, &child);