From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933711AbeB1ThT (ORCPT ); Wed, 28 Feb 2018 14:37:19 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:35996 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933843AbeB1ThM (ORCPT ); Wed, 28 Feb 2018 14:37:12 -0500 X-Google-Smtp-Source: AG47ELsF1rUpdep1lsc1rXDs7TIeC/9/RvFwmVLYIi8+XzTWZJl0zByfR8ipn9TyvRlnEVOJJlrd4g== From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , Andrew Lunn , Russell King , linux-kernel@vger.kernel.org (open list) Subject: [PATCH net-next 5/5] net: phy: marvell10g: Utilize gen10g_soft_reset() Date: Wed, 28 Feb 2018 11:36:12 -0800 Message-Id: <20180228193612.29409-6-f.fainelli@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180228193612.29409-1-f.fainelli@gmail.com> References: <20180228193612.29409-1-f.fainelli@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We do the same thing as the generic function: nothing, so utilize it. Signed-off-by: Florian Fainelli --- drivers/net/phy/marvell10g.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/phy/marvell10g.c b/drivers/net/phy/marvell10g.c index 8a0bd98fdec7..da014eae1476 100644 --- a/drivers/net/phy/marvell10g.c +++ b/drivers/net/phy/marvell10g.c @@ -75,11 +75,6 @@ static int mv3310_probe(struct phy_device *phydev) * Resetting the MV88X3310 causes it to become non-responsive. Avoid * setting the reset bit(s). */ -static int mv3310_soft_reset(struct phy_device *phydev) -{ - return 0; -} - static int mv3310_config_init(struct phy_device *phydev) { __ETHTOOL_DECLARE_LINK_MODE_MASK(supported) = { 0, }; @@ -377,7 +372,7 @@ static struct phy_driver mv3310_drivers[] = { SUPPORTED_10000baseT_Full | SUPPORTED_Backplane, .probe = mv3310_probe, - .soft_reset = mv3310_soft_reset, + .soft_reset = gen10g_soft_reset, .config_init = mv3310_config_init, .config_aneg = mv3310_config_aneg, .aneg_done = mv3310_aneg_done, -- 2.14.1