Message ID | 20171207142715.32578-5-jbrunet@baylibre.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 51B0560325 for <patchwork-linux-amlogic@patchwork.kernel.org>; Thu, 7 Dec 2017 14:29:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 44EE128CD0 for <patchwork-linux-amlogic@patchwork.kernel.org>; Thu, 7 Dec 2017 14:29:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 39C0F28D40; Thu, 7 Dec 2017 14:29:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F277628CD0 for <patchwork-linux-amlogic@patchwork.kernel.org>; Thu, 7 Dec 2017 14:29:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=0YQCeCd3bnaNGkW0vX4PRFktsA+APRMuFuxhIBURb6c=; b=q7wlnU3F04kElbYia17U0+w4ar RyXbZ2FRqSLL1SdLtn30EDgxykb57oyvMuIjmngLBQiDlIaunSSWkBaTB1qITObOIa3+4z9R+b6qa dMV/W0ai49dP7jZOP89dOgDM2CFLsb2ewRDOKraPfzilEn2UL7JvLx0EZmQXKu/Nk2fMm433cagcR Yx6uC0xLHFkm+VLxQqF7Kdr1wXHWvmXnfwznOm/hNtoHUpTYXjzYRzWmtolX+tqkuosJSPlhh5N/4 KB9acKxQRRfitUTLF6wRiT+DJmwBu5DhvQvMkKTXpjefBTY/Fuh5cLgg9fc1sTEWsR5hzXPgNntoK BTANoqBA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eMxAk-0006B7-0b; Thu, 07 Dec 2017 14:29:10 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eMx9L-0004mo-Da for linux-amlogic@lists.infradead.org; Thu, 07 Dec 2017 14:27:55 +0000 Received: by mail-wm0-x244.google.com with SMTP id 64so13180331wme.3 for <linux-amlogic@lists.infradead.org>; Thu, 07 Dec 2017 06:27:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3+UYMrDQApFhAZNtxozbstALLWZm0nKobEox3zS1hFs=; b=ExoQOdc8ChMO5Qlrms90cLV6pwZdA98GbE7AB0SamwS7xmyNXw75bGLZx1zYoR5Boh EentQwHgp7j/Se18WvjuoQd1FkcF4bLqxeWQGES2jJN6eSrjh8mBW54BsttHVLurOCbV 3cmPlCHNXjh/znAeQeSQWW6U6njs6R3QU95VI0JBrV/r6Ef55RAqeGse+D3YZDx0eh1V axjvU+q2jgvLUqfQDfJryzJ1xSn+3bvKf6xnoUYDJawPR3/BQdi9f/zUS//wjmwNceuG W79082XzghbuXr7RacMN4BpHfs8x9xyweERDDNmATl8sv0nmn921ukVGpp5jHJu3W0DZ Chlg== 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; bh=3+UYMrDQApFhAZNtxozbstALLWZm0nKobEox3zS1hFs=; b=t6CAqSDccQ3RZzAHJCXXHPmJgWJmHv0iPwBkKdGmaPdVnyU5V2RA5miEEngr2/Kd9+ g9q7eTpiQKeCvM/ADhFpu/PFsgCDDpAAWd6yQazkXOWdGFC0rDS24O42D89Brj8RjxHd umayAwUdU+xBQr5EJU7caUZ6z2pYG7V+Uca+JM+OmoXyzV94zxPeRN1nshmRDQeqD/hg 83f1gHoc0gzMtULCic+NeddKcerUALxUC+q33pMjcnSG01cB5VYGlC6vkLg6kaE5OD6S 73yMSWZKqxE0tQqR19K7Js8SOjnhyiDXtZM+xpy027d8AH/NCCND+yAv9tvZxj09/bzu f7aA== X-Gm-Message-State: AKGB3mL02wx+1HSN5djSfI44FWfFwUa1i8/9JE2vFmisG1KyffgIGqB9 W3ZX+3n8gwIjPWQMaODsOoxpWA== X-Google-Smtp-Source: AGs4zMYNPjePQONiznz0fG6m3RusLU6DMQZoErq1CbfYeooqtn6xLPZb7gICYzuL23SEjlVa1tSRVw== X-Received: by 10.28.51.21 with SMTP id z21mr1385340wmz.94.1512656842271; Thu, 07 Dec 2017 06:27:22 -0800 (PST) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id t138sm6264520wme.16.2017.12.07.06.27.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Dec 2017 06:27:21 -0800 (PST) From: Jerome Brunet <jbrunet@baylibre.com> To: Andrew Lunn <andrew@lunn.ch>, Florian Fainelli <f.fainelli@gmail.com> Subject: [PATCH net-next v2 4/8] net: phy: meson-gxl: use genphy_config_init Date: Thu, 7 Dec 2017 15:27:11 +0100 Message-Id: <20171207142715.32578-5-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171207142715.32578-1-jbrunet@baylibre.com> References: <20171207142715.32578-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171207_062744_068393_76876F30 X-CRM114-Status: UNSURE ( 8.36 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-amlogic.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-amlogic/> List-Post: <mailto:linux-amlogic@lists.infradead.org> List-Help: <mailto:linux-amlogic-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=subscribe> Cc: Kevin Hilman <khilman@baylibre.com>, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet <jbrunet@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" <linux-amlogic-bounces@lists.infradead.org> Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
On Thu, Dec 07, 2017 at 03:27:11PM +0100, Jerome Brunet wrote: > Use the generic init function to populate some of the phydev > structure fields > > Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Andrew
diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c index 05054770aefb..2e8c40df33c2 100644 --- a/drivers/net/phy/meson-gxl.c +++ b/drivers/net/phy/meson-gxl.c @@ -142,7 +142,7 @@ static int meson_gxl_config_init(struct phy_device *phydev) if (ret) return ret; - return 0; + return genphy_config_init(phydev); } static struct phy_driver meson_gxl_phy[] = {
Use the generic init function to populate some of the phydev structure fields Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> --- drivers/net/phy/meson-gxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)