From patchwork Fri Sep 27 00:24:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 174554 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp2787322ill; Thu, 26 Sep 2019 17:25:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwst2yZ6QQLZ9bGZeE/RqOTtqDfb/QjCttzVexxzWwJxaMWNGx+Fn3/jsBulxG7FpapN9BQ X-Received: by 2002:a50:e791:: with SMTP id b17mr1669999edn.11.1569543904932; Thu, 26 Sep 2019 17:25:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569543904; cv=none; d=google.com; s=arc-20160816; b=nCVZm021OmLhf+cFNXnbTKzZCq6Cacs8PCe936Pwgj+5DeDVSXY+ZHjqhlcFahN6pK pg8Mbi258fCFwVjsH87EaohW/96fAqwno5bwF9g/nd5XXMm0/3EOUEujnpRl25mgepQO lBULenW52hYivfJpQyt0YdQkxJGtV0YMypzjlGtzEM1ZKAyt59uqhkzOwFsY/VzaZrPa KOAyjclD5F96rSrUPZ+kB70NJuz6eKGxAKy/htX4s51vw8flNo1xu5VnULmw5pHdX9qi crEjGXeWGrbC6EkFO82c/GyHWX2kQBCBVktWDKL866/v7/BxskbWumtOr9ZHzgMNQ3Ty ibeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=+w5IFIxhvLU+cAIOScJHHta0qaO4ZGZGm/wE8/ycgf8=; b=L2lqxiV/CNrbQGCsvOFyjPePdKRu4NGXQlXs2QahvjYMUPGAdrhc5yi4NNPHEPt82G INUe/1cSyDNG4Vi92Vm69JymBVR5LMw6mEuoNNlCjFW+fqCSwSW+U0n16M5N7n83+VFS 5OlNoJ0edYcfdFpZj77dpRpfsLCfPbjOxlwJ+6nP6FcS4CZ0vvIm2rE+jsSoLUD0dM82 6/9B+CqsR/I9xSUUk60vxTYRCIjoy9fxcwCEgETzxjQJtHzfWeoLppM3S2istifYzv8E zGgC94Q6Rr9Pg3qLBnbIX+dETVqkNEdxqd9HQm4JEC++u+KrqR0zjFoEXsqXfQvPr5yc EuWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h17si1905166ejt.173.2019.09.26.17.25.04; Thu, 26 Sep 2019 17:25:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726688AbfI0AZB (ORCPT + 8 others); Thu, 26 Sep 2019 20:25:01 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:37191 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725808AbfI0AZB (ORCPT ); Thu, 26 Sep 2019 20:25:01 -0400 Received: by mail-oi1-f196.google.com with SMTP id i16so3740969oie.4; Thu, 26 Sep 2019 17:24:59 -0700 (PDT) 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=+w5IFIxhvLU+cAIOScJHHta0qaO4ZGZGm/wE8/ycgf8=; b=rJ8xxO+z4dT24fHthj0h9FrKmRoSWdet4bq92MPGKa+ydQYYgVLoe7mdZd8dyq+8+d tpItjzCHc4IUOVsZyAr0s4p5tG/m7dHfxeFTlJE42VohqtpDUSqVrFM5SU27t2x1rCPu VhEqOWjEgdDCRIN/EfxTa5ZSsje4P+1x3xronJL8ySpCVYvuZwjW8VIPAlDyv4IlIYTp OXZ6k9wS0cvWFxREoaNQHUVQFc3159Arqhzw6GHC4FeYsXR8DbEYec6YG4nWvO0ayO6h 0BT8XuMPkFfXBNEG73Asw82dCTVSmiNmdtvrBLsBYauEtd01IoJ6Sl+ACszkAXNXKckA cVKg== X-Gm-Message-State: APjAAAVx7jCk15PkIOrhr68qO9a00tFgXL4yFStxNgtcoeF38qxelt4O pnH46U4UNj4Wz7ONpVhXOtVitDI= X-Received: by 2002:aca:c0d6:: with SMTP id q205mr4827563oif.81.1569543898837; Thu, 26 Sep 2019 17:24:58 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id j11sm339866otk.80.2019.09.26.17.24.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2019 17:24:58 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Nicolas Saenz Julienne , Robin Murphy , Florian Fainelli , Stefan Wahren , Frank Rowand , Arnd Bergmann , Marek Vasut , Geert Uytterhoeven , Simon Horman , Lorenzo Pieralisi , Oza Pawandeep Subject: [PATCH 01/11] of: Remove unused of_find_matching_node_by_address() Date: Thu, 26 Sep 2019 19:24:45 -0500 Message-Id: <20190927002455.13169-2-robh@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190927002455.13169-1-robh@kernel.org> References: <20190927002455.13169-1-robh@kernel.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org of_find_matching_node_by_address() is unused, so remove it. Cc: Robin Murphy Signed-off-by: Rob Herring --- drivers/of/address.c | 19 ------------------- include/linux/of_address.h | 12 ------------ 2 files changed, 31 deletions(-) -- 2.20.1 Reviewed-by: Geert Uytterhoeven Reviewed-by: Christoph Hellwig diff --git a/drivers/of/address.c b/drivers/of/address.c index 978427a9d5e6..0c3cf515c510 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -826,25 +826,6 @@ int of_address_to_resource(struct device_node *dev, int index, } EXPORT_SYMBOL_GPL(of_address_to_resource); -struct device_node *of_find_matching_node_by_address(struct device_node *from, - const struct of_device_id *matches, - u64 base_address) -{ - struct device_node *dn = of_find_matching_node(from, matches); - struct resource res; - - while (dn) { - if (!of_address_to_resource(dn, 0, &res) && - res.start == base_address) - return dn; - - dn = of_find_matching_node(dn, matches); - } - - return NULL; -} - - /** * of_iomap - Maps the memory mapped IO for a given device_node * @device: the device whose io range will be mapped diff --git a/include/linux/of_address.h b/include/linux/of_address.h index 30e40fb6936b..e317f375374a 100644 --- a/include/linux/of_address.h +++ b/include/linux/of_address.h @@ -33,10 +33,6 @@ extern u64 of_translate_dma_address(struct device_node *dev, extern u64 of_translate_address(struct device_node *np, const __be32 *addr); extern int of_address_to_resource(struct device_node *dev, int index, struct resource *r); -extern struct device_node *of_find_matching_node_by_address( - struct device_node *from, - const struct of_device_id *matches, - u64 base_address); extern void __iomem *of_iomap(struct device_node *device, int index); void __iomem *of_io_request_and_map(struct device_node *device, int index, const char *name); @@ -71,14 +67,6 @@ static inline u64 of_translate_address(struct device_node *np, return OF_BAD_ADDR; } -static inline struct device_node *of_find_matching_node_by_address( - struct device_node *from, - const struct of_device_id *matches, - u64 base_address) -{ - return NULL; -} - static inline const __be32 *of_get_address(struct device_node *dev, int index, u64 *size, unsigned int *flags) {