Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp412590rwl; Wed, 5 Apr 2023 02:30:11 -0700 (PDT) X-Google-Smtp-Source: AKy350apoWOkpchttRZIdq9e+9Nf6Zxk6VYY9aU0LrMcwA/TsOo9dS8eOnMbxCNZRYYgf55lMVtl X-Received: by 2002:a17:903:2012:b0:1a1:9787:505a with SMTP id s18-20020a170903201200b001a19787505amr4344373pla.58.1680687011651; Wed, 05 Apr 2023 02:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680687011; cv=none; d=google.com; s=arc-20160816; b=zsnft2fT8uU8NGXQm7YtloHs63JDYItg9SdwKdSKmubSuMh3kY/V+oUf2Tal3NZEKY FqWFXpS+kD3YyTXX8Dok7HrYRbyyeq1elweilWKwCA7z+Gb4swh0kPvQXt/OdzRYt189 ySw2+6ue0HbidWYHXc+AfJUD9K0KM4dmgbS/k2SXWQK1vNYtgyD/QrFFlwwqitXA2O8n f6dEAyRjocBljc3HICRL1No14CM+aQoGpiucFe1lBbhquWutKAeGb5veHtvo0GBAoY2p t/UQpn5bogJZt3l1riwDl+CtNGfjZ1lKxPhFEQ6G9YU1WcFZnde1m/lF0VhJECYxtmlB Kzhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from; bh=JKZMR5TShp5L+oKXDj23Ujdy9brmAlVDO3VgPkUEYSc=; b=gZc4lQxBXALoU7j6TcftozPk1KeOFTaEj2DvKMIpFWJn5ftB36KDT3DYyyiH5mO2B9 xGkZWjCiW7/hnGc5gIcbvrrCjGEjrE3kYch803/Ar2hyRzNy6yRBZGix3HVMBPHZlSd0 +rRW0jI9dWZyUukL7L+0fuigmcPuEnJLwmvXmH6ONS5ya2UZO2CkdlPEwIGJ7MrvwxoW 8orrLWmOf4O1WH91iqXg00DBOLhW51VpPtOJL6xfK7+4lyz1RZiqigfKVvaku7qpNSq0 OW3UCkVZfM4x6CODusVrmaDsbTQVuq/YnxZUeyDFvlYCiMeEOLrvVQbH2TzknHomYFTI xTYw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk13-20020a056a02028d00b0051398c6fa41si11965868pgb.891.2023.04.05.02.29.35; Wed, 05 Apr 2023 02: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 S237485AbjDEJ3R (ORCPT + 99 others); Wed, 5 Apr 2023 05:29:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237509AbjDEJ2y (ORCPT ); Wed, 5 Apr 2023 05:28:54 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FE7B5258 for ; Wed, 5 Apr 2023 02:28:16 -0700 (PDT) Received: from dude02.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::28]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1pjzQ8-0004pA-UM; Wed, 05 Apr 2023 11:27:12 +0200 From: Marco Felsch Date: Wed, 05 Apr 2023 11:27:01 +0200 Subject: [PATCH 10/12] of: mdio: remove now unused of_mdiobus_phy_device_register() MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230405-net-next-topic-net-phy-reset-v1-10-7e5329f08002@pengutronix.de> References: <20230405-net-next-topic-net-phy-reset-v1-0-7e5329f08002@pengutronix.de> In-Reply-To: <20230405-net-next-topic-net-phy-reset-v1-0-7e5329f08002@pengutronix.de> To: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Florian Fainelli , Broadcom internal kernel review list , Richard Cochran , Radu Pirea , Shyam Sundar S K , Yisen Zhuang , Salil Mehta , Jassi Brar , Ilias Apalodimas , Iyappan Subramanian , Keyur Chudgar , Quan Nguyen , "Rafael J. Wysocki" , Len Brown , Rob Herring , Frank Rowand Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, devicetree@vger.kernel.org, kernel@pengutronix.de X-Mailer: b4 0.12.1 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::28 X-SA-Exim-Mail-From: m.felsch@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 There are no references to of_mdiobus_phy_device_register() anymore so we can remove the code. Signed-off-by: Marco Felsch --- drivers/net/mdio/of_mdio.c | 9 --------- include/linux/of_mdio.h | 8 -------- 2 files changed, 17 deletions(-) diff --git a/drivers/net/mdio/of_mdio.c b/drivers/net/mdio/of_mdio.c index 10dd45c3bde0..e85be8a72978 100644 --- a/drivers/net/mdio/of_mdio.c +++ b/drivers/net/mdio/of_mdio.c @@ -33,15 +33,6 @@ static int of_get_phy_id(struct device_node *device, u32 *phy_id) return fwnode_get_phy_id(of_fwnode_handle(device), phy_id); } -int of_mdiobus_phy_device_register(struct mii_bus *mdio, struct phy_device *phy, - struct device_node *child, u32 addr) -{ - return fwnode_mdiobus_phy_device_register(mdio, phy, - of_fwnode_handle(child), - addr); -} -EXPORT_SYMBOL(of_mdiobus_phy_device_register); - static int of_mdiobus_register_phy(struct mii_bus *mdio, struct device_node *child, u32 addr) { diff --git a/include/linux/of_mdio.h b/include/linux/of_mdio.h index 8a52ef2e6fa6..ee1fe034f3fe 100644 --- a/include/linux/of_mdio.h +++ b/include/linux/of_mdio.h @@ -47,8 +47,6 @@ struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np); int of_phy_register_fixed_link(struct device_node *np); void of_phy_deregister_fixed_link(struct device_node *np); bool of_phy_is_fixed_link(struct device_node *np); -int of_mdiobus_phy_device_register(struct mii_bus *mdio, struct phy_device *phy, - struct device_node *child, u32 addr); static inline int of_mdio_parse_addr(struct device *dev, const struct device_node *np) @@ -142,12 +140,6 @@ static inline bool of_phy_is_fixed_link(struct device_node *np) return false; } -static inline int of_mdiobus_phy_device_register(struct mii_bus *mdio, - struct phy_device *phy, - struct device_node *child, u32 addr) -{ - return -ENOSYS; -} #endif -- 2.39.2