From patchwork Mon Dec 18 09:44:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10118673 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 A99616019C for ; Mon, 18 Dec 2017 10:01:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9501B28DB1 for ; Mon, 18 Dec 2017 10:01:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8865828E35; Mon, 18 Dec 2017 10:01:20 +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 E372928DB1 for ; Mon, 18 Dec 2017 10:01:19 +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=zaSzNZ0z9p3Z0QxIxFzzQNbNwZK7+nffw2wyb+LHBNk=; b=Lhtx/bYykOowDIQU4ebhgWEfZL qPn8XVeLRQw7wiaQMqieJEKzIGKbP2cWeQWeKBSOZ1dpWBEQffLTwkfBSZt0DICznJ4cHSx5ZJM/0 2b5EtmVtS/VSBwaXnpsl6u2SgdwW755tZuRmQ2iijqjH9oH+j6gUZnZDJvXhuE6WOznygoxrxmfVm JM9qghShFEDkebhUTboUPsm0LMSwf2h8lUkigDH+yGAgOyFe4ZCKiQ7tGHVc5g2AAJLLE1BpvFeQz adhAFnHz/cdi3aXwrfGGSdH9CX6lbUx35RjND55yADsyl+xW7qQsmDm5e6yla2GXX82l10C7GZNJz mpwdLfhA==; 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 1eQsEY-0006op-SH; Mon, 18 Dec 2017 10:01:18 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eQrz4-0004fj-Bc for linux-arm-kernel@lists.infradead.org; Mon, 18 Dec 2017 09:45:29 +0000 Received: by mail-wm0-x243.google.com with SMTP id t8so27872456wmc.3 for ; Mon, 18 Dec 2017 01:44:57 -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=8VFGU2SRz5rTk/WJol+kiU97NkMvheqraHG7vLP+ZXM=; b=lVuJrkaVSXhKPGXB6IqRF3YFVdJt79zEZ0VpvRJjVTbaPJjxf6MjE3/w19rYstNtFf giUf2eqw49bBhUY823KKEyt7oj3id++7RlRW5oGfl857H8+A/nSAH7gA5AVLXVBPwkli 4yUuIXsmQtPU5l5mCGck8qZZnNhJJ6RMV3xOW9iKjRQAca5TfH2JPUDuBsi3u6TeHceJ gheaIDKfsZtoUTHrJFa2TNDR7sYEDHFDzz8jtJ2VR2+6i4l/wnq1JD+3dTAmpT/hJ3PD Yz5o62UZ1fXJS5Hyzha25WHT746Drx1hexZ7iWm1hxULGpeEh5q60tAxZrVmqXqFGbFY ryEA== 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=8VFGU2SRz5rTk/WJol+kiU97NkMvheqraHG7vLP+ZXM=; b=C3tQa4yOE5U8DzqYrdLNy+RS2n2qQwdmAmtNTas/sRftAl7JJNu0QQ3wMVsJNpstyt K1p7caNv0qh8SBLJnmUmFeaxYp6FphMBkmE4DP5gTlFWHR8OvniwAaomAiRXaEdvKKcv o7BFyhjUuC51yN9IqNhjj8oG/xfo45v8i4JStw5PRZqwKiYU2ZxiU0a9yi6PWfFIOahz CATvogE16tdgfaHJCYqu+w9znQw3x4rsJhobO+Ki90ogyeQ+EfYGEMV25wyI6V9088KI osJX0TuYrYbroXiYqQdDXrXDstROwCLbrqmMhjaXKdA57ZK/aujS9atx2rR6i2xCqolB d72Q== X-Gm-Message-State: AKGB3mK62Fkr8oZRaGayNQcXF6R/+EoG4DD3bmjxmFS1bcSzydkgpNxp pBsywPGuFQoy0P/sjSsG6ubCDg== X-Google-Smtp-Source: ACJfBotek3fsoq38mjliVRPSqioKP/FknEibEaexKhaHh50G12WO6NfhiCb1Tg+UpllM9oBqoVd4/g== X-Received: by 10.28.170.137 with SMTP id t131mr10758257wme.137.1513590296338; Mon, 18 Dec 2017 01:44:56 -0800 (PST) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id p13sm12820783wrc.61.2017.12.18.01.44.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Dec 2017 01:44:55 -0800 (PST) From: Jerome Brunet To: Andrew Lunn , Florian Fainelli Subject: [PATCH net-next v3 4/7] net: phy: meson-gxl: use genphy_config_init Date: Mon, 18 Dec 2017 10:44:43 +0100 Message-Id: <20171218094446.31912-5-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171218094446.31912-1-jbrunet@baylibre.com> References: <20171218094446.31912-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171218_014518_770232_01653CEF X-CRM114-Status: UNSURE ( 9.62 ) 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 Reviewed-by: Andrew Lunn Signed-off-by: Jerome Brunet --- 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 a52645566d0d..0a34656a2086 100644 --- a/drivers/net/phy/meson-gxl.c +++ b/drivers/net/phy/meson-gxl.c @@ -147,7 +147,7 @@ static int meson_gxl_config_init(struct phy_device *phydev) if (ret) return ret; - return 0; + return genphy_config_init(phydev); } /* This function is provided to cope with the possible failures of this phy