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: 845594 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="ExoQOdc8"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3ysyY95scbz9sxR for ; Fri, 8 Dec 2017 01:29:33 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754064AbdLGO3a (ORCPT ); Thu, 7 Dec 2017 09:29:30 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33959 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753798AbdLGO1X (ORCPT ); Thu, 7 Dec 2017 09:27:23 -0500 Received: by mail-wm0-f66.google.com with SMTP id y82so879592wmg.1 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=pnJLoW7T3o705fUJtvZ2+qYmUFIWRVoeAi67ZhqePlBY3huUtl+d7WxnhGLl5rASmg IhzPIsXsb43o8RI0VXZyOFiE6Y1TUCpfdZtIMIelPrzbBiMq3zn6M4l1kQveursziFse eSDHt7F8+glPPnCFDE9e9byRLUBSQ7MTLrTGXTLVPbCS7M6U8rm73FmlkCuQs+e2AaID atqaUsWZ7/xAs+8pKMO8fuKa4QR+kQpghPg6o9jI+gFjic+f2NvTyOeVgl4HWbQmHyrD Eh0cZskV7CIaWkSaEGbTbuYe8KGyIV6As7zY/FeNLcuDg6UGL3JLiOudsviO5F7B30LR tkIg== X-Gm-Message-State: AKGB3mKytMiOcclL+CAC2edy5Jxuhz0jUy8Xu3psDCKu5Q21RVQ/BoER UgibZY6/NZlIxdeKHWCUKf0zfw== 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 Cc: Jerome Brunet , Kevin Hilman , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org 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> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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[] = {