Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1843077imm; Wed, 16 May 2018 04:03:32 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo863uZJAOepG/yXbMAh5PU0jXEQPcxEJL1chxra/8/dQ1MewvER6GPHytfEU3/HRUEPQvs X-Received: by 2002:a62:93c8:: with SMTP id r69-v6mr444649pfk.59.1526468612534; Wed, 16 May 2018 04:03:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526468612; cv=none; d=google.com; s=arc-20160816; b=aFrhUmK9wreFIqHTIb60TAW1ysNU4HIffdB7w0S9J7/rOlwgOBilt/AvzDL1cz4Rt4 EyGh/nJT0/C0gN1EdR/i7V1EphtMBGTNPmTQfnEmz8xcTnr+tLOqOiJnSzNZNm/dmfJ9 pCoOJipmX8N3QrXxX0nsCsO9LosgF+/+IEZzjrDUrt0fnjIutpuv6YRehUtBwMrGbTaG I7g19P75eJAGdIkSEph+yz/1LNPzlA17uhxkO41fvPvmnu2GOecYgnNg+kGmcytUTtb8 nQ+tht+gUbhWD+rLB0E3SfhNBTaiXs+8GgtNz7FQU3QTrzVn8N1mrP0kVKECfBZN7aP7 bR5w== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature:arc-authentication-results; bh=6dIGzgE0BmyY2RJ3GpyA0oGNKqf7eAeHie+h28n3JIs=; b=MtCnFKd3eRbiJEP7WwjDRS+/GnrGtUqpi0R1rD083M0RL0aFQGV6dGZxczLgVIcYXq Ix+6VOXw0lHgunOMHLE0ybovcmGWbVLrQzpm71j1AXTyQcJSGsg+aOY49BNB/yaylPOi X9hR9CII7+29aM2vyLS1Y+kMxnsHyIxqZV0iuH277QUkxYnf99qk9yn8bj+KbTU3nbmu 8KtzNs3eY0QJYzQy8aH+IsHr/77wcipi+LvvhLxn1t+Z+14gJsikhfyYzEn3xtT7RqZK QytYEo7w7AjnT/i1rYQelPNF1Ajcmzh4G7cVz6ufivdF9IW0TnLEQ13QPzBlRYGPBm4S 5Aaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=VHUv7iS+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2-v6si2373359plk.433.2018.05.16.04.03.17; Wed, 16 May 2018 04:03:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=VHUv7iS+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752392AbeEPLBm (ORCPT + 99 others); Wed, 16 May 2018 07:01:42 -0400 Received: from smtprelay6.synopsys.com ([198.182.37.59]:47184 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752081AbeEPLBi (ORCPT ); Wed, 16 May 2018 07:01:38 -0400 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id 553111E04F9; Wed, 16 May 2018 13:01:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1526468496; bh=14phNgDciu2V6Hf3gRA0CtL3n133k3Yhgsx8EmcLtCs=; h=Subject:To:References:CC:From:Date:In-Reply-To:From; b=VHUv7iS+04mRL7l6KUoK7bKbc0x8M1BQvaspGVOYfc3eabQqT9sd2lHJ4cSIwBwqr D8DfTVQZcs1orOPmlpot6+sQ26UVm3+pDjZOi5qjDhRFDE5v5yywXwV5NlUr5ttRON PB5Ug+giOZIP9BW1vNilgFj7iOgEtMsogD7nheJgO9+zO1C5wOmZMTujBZcJd9RgYC W7gtmUJhKgHnJJEBmnDZabQlkZKmG2yWSoe2v7VkCTk1Rko1uJs+JhhZdz8lfERezv C2//XBikJgspYH/2NIDeQxnlzfyzyWrXakBIlD0bLV83eK1zMwwr7UgMB8vkv0qbm0 RV46u23HOwDLg== Received: from us01wehtc1.internal.synopsys.com (us01wehtc1-vip.internal.synopsys.com [10.12.239.236]) by mailhost.synopsys.com (Postfix) with ESMTP id 6B62038B2; Wed, 16 May 2018 04:01:31 -0700 (PDT) Received: from DE02WEHTCB.internal.synopsys.com (10.225.19.94) by us01wehtc1.internal.synopsys.com (10.12.239.235) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 16 May 2018 04:01:31 -0700 Received: from DE02WEHTCA.internal.synopsys.com (10.225.19.92) by DE02WEHTCB.internal.synopsys.com (10.225.19.94) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 16 May 2018 13:01:28 +0200 Received: from [10.0.2.15] (10.107.19.35) by DE02WEHTCA.internal.synopsys.com (10.225.19.80) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 16 May 2018 13:01:28 +0200 Subject: Re: [PATCH net-next v2 2/2] drivers: net: Remove device_node checks with of_mdiobus_register() To: Florian Fainelli , References: <20180515235619.27773-1-f.fainelli@gmail.com> <20180515235619.27773-3-f.fainelli@gmail.com> CC: Andrew Lunn , Vivien Didelot , "David S. Miller" , Nicolas Ferre , "Fugang Duan" , Sergei Shtylyov , Giuseppe Cavallaro , Alexandre Torgue , "Jose Abreu" , Grygorii Strashko , Woojung Huh , Microchip Linux Driver Support , Rob Herring , Frank Rowand , Antoine Tenart , Tobias Jordan , Russell King , Geert Uytterhoeven , Thomas Petazzoni , =?UTF-8?Q?Niklas_S=c3=b6derlund?= , Simon Horman , Maxim Uvarov , Sekhar Nori , open list , "open list:RENESAS ETHERNET DRIVERS" , "open list:TI ETHERNET SWITCH DRIVER (CPSW)" , "open list:USB NETWORKING DRIVERS" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE" From: Jose Abreu Message-ID: <2a70eb7c-7fc9-8bf6-a06a-87b4901d66ae@synopsys.com> Date: Wed, 16 May 2018 12:01:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20180515235619.27773-3-f.fainelli@gmail.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.107.19.35] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16-05-2018 00:56, Florian Fainelli wrote: > A number of drivers have the following pattern: > > if (np) > of_mdiobus_register() > else > mdiobus_register() > > which the implementation of of_mdiobus_register() now takes care of. > Remove that pattern in drivers that strictly adhere to it. > > Signed-off-by: Florian Fainelli > --- > drivers/net/dsa/bcm_sf2.c | 8 ++------ > drivers/net/dsa/mv88e6xxx/chip.c | 5 +---- > drivers/net/ethernet/cadence/macb_main.c | 12 +++--------- > drivers/net/ethernet/freescale/fec_main.c | 8 ++------ > drivers/net/ethernet/marvell/mvmdio.c | 5 +---- > drivers/net/ethernet/renesas/sh_eth.c | 11 +++-------- > drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 5 +---- For stmmac: Reviewed-by: Jose Abreu Thanks and Best Regards, Jose Miguel Abreu > drivers/net/ethernet/ti/davinci_mdio.c | 8 +++----- > drivers/net/phy/mdio-gpio.c | 6 +----- > drivers/net/phy/mdio-mscc-miim.c | 6 +----- > drivers/net/usb/lan78xx.c | 7 ++----- > 11 files changed, 20 insertions(+), 61 deletions(-) >