From patchwork Sun Nov 29 00:50:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1407760 X-Patchwork-Delegate: sjg@chromium.org Return-Path: 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=) 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=hBGUUCrL; 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 4Ck8tz59vhz9sSn for ; Sun, 29 Nov 2020 11:51:23 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 14B4D82732; Sun, 29 Nov 2020 01:50:55 +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="hBGUUCrL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E42A68275B; Sun, 29 Nov 2020 01:50:39 +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-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) (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 DAF468270E for ; Sun, 29 Nov 2020 01:50:34 +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-x142.google.com with SMTP id x15so7967741ilq.1 for ; Sat, 28 Nov 2020 16:50:34 -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=G8ZESKmubA8GSBy5DZl5iiSXSaGTIaVwHJzLWmkTACQ=; b=hBGUUCrLFNg5HZvlg96D6HCMhcNleDPoPF4raaRQWqpfalBhF+iQOqJZ/rB/O4YJA+ zxUdRd2c0MHT7MJ4kesNXuo7HI83B9mHQIcsw+4J4hKb5TrxNmOQwncxP8v909p5oZDQ cSf2DH6u3eDoONWj6pFHiDIIdAcFveeuJAQ8o= 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=G8ZESKmubA8GSBy5DZl5iiSXSaGTIaVwHJzLWmkTACQ=; b=udZwPIP1NIXJLsL0fz2cVpubShKVMgqrOkWEXrmcPaiOTvwxcoh+3KlZDEhKZZoUXo l+jaIxmppOHtD+2TGElPE87MobeT6pxrGP3RTCUO5oXYHE54GcbEGq8nJ7BxOJuLSy4Y 5V3SSY0xKsGwGaQtGwq7kchDkiOJfRNA/+CVigrs7acw+C+y8ejXJuLEnYC4IufA0SuR qTfWzvErkjPtigetX5OI8nhVxpLoVzjkmwFukT3i1z4sSswoXWX4u84xBSh0j6U+Pt7w 5XVsVCan0uSutzp8Y4klIfMAiep3IndTkmzTwo8/5u6cQ3mU/VDyVrmMLLQt6nAZjk3h oBhA== X-Gm-Message-State: AOAM530xz2H3Fs9Y4NnmYJjST/wWz9oTjnJAsIiAPa4pkRLsREbSXYg7 HvrOcsz1L2QNdhC/7PCCsAB1wKD+n3Mquw== X-Google-Smtp-Source: ABdhPJw5l6czXCJCls3F2TcR7aJREm0NLnjSxz15X0phzdTCJ47riQs/VRkdMPp/8/n1SISnEC9qkQ== X-Received: by 2002:a05:6e02:689:: with SMTP id o9mr13018843ils.47.1606611033649; Sat, 28 Nov 2020 16:50:33 -0800 (PST) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id s4sm5807982iop.21.2020.11.28.16.50.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Nov 2020 16:50:33 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Marek Vasut , Pavel Herrmann Subject: [PATCH 06/11] dm: core: Drop dev_set_of_offset() Date: Sat, 28 Nov 2020 17:50:05 -0700 Message-Id: <20201128174958.6.Ib1d61a00e42835cc4ed42779689b3ec58334128e@changeid> X-Mailer: git-send-email 2.29.2.454.gaff20da3a2-goog In-Reply-To: <20201129005011.2104545-1-sjg@chromium.org> References: <20201129005011.2104545-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean This pre-livetree function is not needed anymore. Drop it. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- include/dm/device.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/dm/device.h b/include/dm/device.h index 5bef4842470..25a77d08b9d 100644 --- a/include/dm/device.h +++ b/include/dm/device.h @@ -177,11 +177,6 @@ static inline int dev_of_offset(const struct udevice *dev) return ofnode_to_offset(dev->node); } -static inline void dev_set_of_offset(struct udevice *dev, int of_offset) -{ - dev->node = offset_to_ofnode(of_offset); -} - static inline bool dev_has_of_node(struct udevice *dev) { return ofnode_valid(dev->node);