From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758575AbdLRJpE (ORCPT ); Mon, 18 Dec 2017 04:45:04 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:42571 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758311AbdLRJo5 (ORCPT ); Mon, 18 Dec 2017 04:44:57 -0500 X-Google-Smtp-Source: ACJfBotek3fsoq38mjliVRPSqioKP/FknEibEaexKhaHh50G12WO6NfhiCb1Tg+UpllM9oBqoVd4/g== 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 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> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.14.3