From patchwork Thu Dec 7 14:27:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10099295 Return-Path: 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 30B9760325 for ; Thu, 7 Dec 2017 14:29:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23F5A28CD0 for ; Thu, 7 Dec 2017 14:29:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1852728DCB; Thu, 7 Dec 2017 14:29:18 +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 A350128CD0 for ; Thu, 7 Dec 2017 14:29:17 +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=ThUknrxyZrBX/4IJWsNH556q1CJs2/P4F+r2TJAOJnw=; b=nXSE+uAx1+JKXImztRsti5Cm/5 8wkgZIyFNiUqoEGv7DwbxTaiSjNDmw7S9yT0TlQ4Jzi926r+riVxC0BV8tYSmWxSbr72WCk0HpBkO cne1lF1uNo6Y5whumLmuvAis0eMgTEP7QJo1SyU4bKvjNxwaVgG/TrkGjxM1X+EP8fRt46aRhVs0Z d+VrHeoxvraAAtZaMA5stlGovhr8a4ghMkOu/8eo/lV0mk3A2Ib3/hf21ep5j2QCBMEvJS6FnBNke Ow+73KKVmkVtMpyNjPbAD2JrMHz7COVjnU4l0U5Fr9jefBBsDl/oaDKMud+imraAHbHgbANFVSMeV 6d/PtEbw==; 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 1eMxAq-0006Ge-Ny; Thu, 07 Dec 2017 14:29:16 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eMx9M-0004mn-Au for linux-arm-kernel@lists.infradead.org; Thu, 07 Dec 2017 14:27:57 +0000 Received: by mail-wm0-x241.google.com with SMTP id g75so13502849wme.0 for ; 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=BT3fiAqKyyFA9rYYnGkEnPNMEKQ0jsn5KHnnmoSQjToCPxBkjC/QzwmPJrAbdmpqir W1DnohFJpwr36tOre9bV/SHieUAhjE18qtWh48IMcXQwNq4WKvudQK62xLzq3rXrr2G3 Ep90aU+79xlfZoDtPnMi9c8qEbdc6ngJ7cgS9MUqSie3G50jswJ83YOGjKRTL6mCAr1s um8I8YeRdZTFm/pnNO+GJrYSDxwgmBvf5cARLVWA3xF8FwDN1XgF2q4iXn7X3eQLVXsu jtV6Qb7aIUu/lla5aL6nH2HdcKvqKbGl/VQczGqLGKEThOmhHRcT4Bm91AgoNG3VvYna eMGg== X-Gm-Message-State: AKGB3mKeWz/WLDj0qDg9SN3956DtdZ5en8C4LwlrsEbTPJGkN03ctrIO DOL+durLduxJVgCz41q2c1iJCA== 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 To: Andrew Lunn , Florian Fainelli 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_657015_6164E179 X-CRM114-Status: UNSURE ( 9.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Hilman , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Use the generic init function to populate some of the phydev structure fields Signed-off-by: Jerome Brunet Reviewed-by: Andrew Lunn --- drivers/net/phy/meson-gxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[] = {