Message ID | 20201216152506.119900-8-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Simon Glass |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: 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=bqr54wbM; 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 RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CwzY33QCPz9sRf for <incoming@patchwork.ozlabs.org>; Thu, 17 Dec 2020 02:28:23 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0E78E82AE5; Wed, 16 Dec 2020 16:26:03 +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="bqr54wbM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2E61982ABB; Wed, 16 Dec 2020 16:25:42 +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.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (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 7714382AAE for <u-boot@lists.denx.de>; Wed, 16 Dec 2020 16:25:38 +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-x131.google.com with SMTP id u12so22826390ilv.3 for <u-boot@lists.denx.de>; Wed, 16 Dec 2020 07:25:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JQmV79v/a/VljgrZ5ZKU37r87tVFgJ3sGbheP9Llw2Q=; b=bqr54wbMwRgckZQ6rVwf6tuFtwgagKtJBJUZbQ7xCgSP+nC8dph2Hhf+vLGDHlDCMN r8KvgbqafOie9+ljmhK34vMRYckuSbK9CGE0eHPhwc65/pd1RCR5G2RY0yi9JUe0oGyl 33E1eZPNHWbIODvsEAdeQb6AjB9YWbVWS2jj4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JQmV79v/a/VljgrZ5ZKU37r87tVFgJ3sGbheP9Llw2Q=; b=KH9cfYa3iRLpDZZ33OHWg/Uc/UBEAAdRBei7BDKBjBuxbwjed6fYlZn4teN6NjLEaY 2as1MbvYkvKEG2IcHg7W0xJL4fG4Xz6MwV+2Qs0kMRg5q36uELkaOkni7/2mrUpO2ysX UL9bCVqao3eo5AhkclMrs5pGli0MbBkNdwl+0rvLxwCK30Z/bp1bX+w42oSCFLv3qv+6 VJ+DjRgEnVzh1UFsVYrhEvxuQUfUDfOWbHgjGmW6/8e6QsfnoskM7erol69n35s0t9cb 4qSv57N5JnwxHyBrklQwlC/WLI1rR7csYpBEbA0d1s2VyCEU6c196/2FZtQkprNjqGy5 4gwg== X-Gm-Message-State: AOAM532I0HvdPIOv8OJ2Pp8m5sbbMMobveONmjTvTwzXO/HQKwDrNPeW V7k2F3eoShty1jyJUE3SCSWaJ1cK4C9PQkji X-Google-Smtp-Source: ABdhPJxbC8wqKkdR+MWxjRv7tti1lv5g0kN/mPQIz/na4QkWYxz7UduGfxc0GU+vRrigfAcU+V+xew== X-Received: by 2002:a92:cc03:: with SMTP id s3mr47602511ilp.146.1608132333083; Wed, 16 Dec 2020 07:25:33 -0800 (PST) Received: from localhost.localdomain (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id l6sm1479077ili.78.2020.12.16.07.25.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Dec 2020 07:25:32 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Simon Glass <sjg@chromium.org>, Marek Vasut <marex@denx.de>, Pavel Herrmann <morpheus.ibis@gmail.com> Subject: [PATCH 12/18] dm: core: Only include simple-bus devicetree id when needed Date: Wed, 16 Dec 2020 08:25:00 -0700 Message-Id: <20201216152506.119900-8-sjg@chromium.org> X-Mailer: git-send-email 2.29.2.684.gfbc64c5ab5-goog In-Reply-To: <20201216152506.119900-1-sjg@chromium.org> References: <20201216152506.119900-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
dm: Preparation for enhanced of-platdata
|
expand
|
diff --git a/drivers/core/simple-bus.c b/drivers/core/simple-bus.c index c45212a0d3a..7dbcbecd948 100644 --- a/drivers/core/simple-bus.c +++ b/drivers/core/simple-bus.c @@ -50,15 +50,17 @@ UCLASS_DRIVER(simple_bus) = { .per_device_plat_auto = sizeof(struct simple_bus_plat), }; +#if !CONFIG_IS_ENABLED(OF_PLATDATA) static const struct udevice_id generic_simple_bus_ids[] = { { .compatible = "simple-bus" }, { .compatible = "simple-mfd" }, { } }; +#endif U_BOOT_DRIVER(simple_bus) = { .name = "simple_bus", .id = UCLASS_SIMPLE_BUS, - .of_match = generic_simple_bus_ids, + .of_match = of_match_ptr(generic_simple_bus_ids), .flags = DM_FLAG_PRE_RELOC, };
This is not needed when of-platdata is in use. Update it. Signed-off-by: Simon Glass <sjg@chromium.org> --- drivers/core/simple-bus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)