From patchwork Fri Mar 25 17:22:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= X-Patchwork-Id: 12792030 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70F17C433EF for ; Fri, 25 Mar 2022 19:58:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231941AbiCYUAJ (ORCPT ); Fri, 25 Mar 2022 16:00:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231938AbiCYT7z (ORCPT ); Fri, 25 Mar 2022 15:59:55 -0400 Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42FD227381E; Fri, 25 Mar 2022 12:49:57 -0700 (PDT) Received: from relay6-d.mail.gandi.net (unknown [IPv6:2001:4b98:dc4:8::226]) by mslow1.mail.gandi.net (Postfix) with ESMTP id E3AF7C75D4; Fri, 25 Mar 2022 17:26:19 +0000 (UTC) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 038D8C0005; Fri, 25 Mar 2022 17:24:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1648229043; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FRdaf3QubwalLgacUcstEdzO4ExbwqJKpfZxmAqvKtk=; b=W5e1McTTjEWKYFTx3lHvohtMmUPM9fZXTmJ6wra32uO5GEMUv358WeMWxqV3GEvkhn8SoB Tg4yK8/yc1gSbaUYenNc5xR1eA9WO+IqqM1of4KlJmg6bFLIMRLpfwdNSlSeE+hIichm6u ZveyiQJdTtzBmitmnpFwNdXO0S2vLEcGlnxPX0Yxkh03hBl4Kkpg0NDhMM3EhebiPmduFQ bXa4ExaWUF9b1m+yI04xkkkBOyM4dGBCfrfqjkpExuA8Bgz/9sQVgeLYosNoG4zAQQ150C OCALX4Vz/yAt9zoh8/Fxx8vEli7kWWyMDMeyrICVdqhLghfbyej5r6LPippfdQ== From: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= To: Andrew Lunn , Heiner Kallweit , Russell King , "David S . Miller" , Jakub Kicinski , Paolo Abeni Cc: Horatiu Vultur , Thomas Petazzoni , Alexandre Belloni , Allan Nielsen , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= Subject: [net-next 5/5] net: mdio: mscc-miim: use fwnode_mdiobus_register() Date: Fri, 25 Mar 2022 18:22:34 +0100 Message-Id: <20220325172234.1259667-6-clement.leger@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220325172234.1259667-1-clement.leger@bootlin.com> References: <20220325172234.1259667-1-clement.leger@bootlin.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Use fwnode_mdiobus_register() to be compatible with devices described with fwnode. Signed-off-by: Clément Léger Reported-by: kernel test robot --- drivers/net/mdio/mdio-mscc-miim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/mdio/mdio-mscc-miim.c b/drivers/net/mdio/mdio-mscc-miim.c index c483ba67c21f..ea79421fcfd4 100644 --- a/drivers/net/mdio/mdio-mscc-miim.c +++ b/drivers/net/mdio/mdio-mscc-miim.c @@ -7,12 +7,12 @@ */ #include +#include #include #include #include #include #include -#include #include #include #include @@ -288,7 +288,7 @@ static int mscc_miim_probe(struct platform_device *pdev) if (!miim->info) return -EINVAL; - ret = of_mdiobus_register(bus, pdev->dev.of_node); + ret = fwnode_mdiobus_register(bus, dev_fwnode(&pdev->dev)); if (ret < 0) { dev_err(&pdev->dev, "Cannot register MDIO bus (%d)\n", ret); return ret;