Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752610AbdHEUMc (ORCPT ); Sat, 5 Aug 2017 16:12:32 -0400 Received: from mail.savoirfairelinux.com ([208.88.110.44]:48346 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751519AbdHEUMb (ORCPT ); Sat, 5 Aug 2017 16:12:31 -0400 From: Vivien Didelot To: Andrew Lunn Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Florian Fainelli Subject: Re: [PATCH net-next 1/3] net: dsa: assign switch device in legacy code In-Reply-To: <20170805005526.GA19193@lunn.ch> References: <20170804222320.10986-1-vivien.didelot@savoirfairelinux.com> <20170804222320.10986-2-vivien.didelot@savoirfairelinux.com> <20170805005526.GA19193@lunn.ch> Date: Sat, 05 Aug 2017 16:09:28 -0400 Message-ID: <873795g4jr.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 349 Lines: 18 Hi Andrew, Andrew Lunn writes: >> @@ -251,8 +251,9 @@ dsa_switch_setup(struct dsa_switch_tree *dst, struct net_device *master, >> ds->cd = cd; >> ds->ops = ops; >> ds->priv = priv; >> + ds->dev = parent; > > Is this even needed? dsa_switch_alloc() does ds->dev = dev. You are correct! Respinning. Thanks, Vivien