Messages in this thread | | | Subject | Re: [RFC PATCH v3 1/5] net: dsa: allow switch drivers to cleanup their resources | From | Neil Armstrong <> | Date | Thu, 29 Oct 2015 15:56:28 +0100 |
| |
On 10/29/2015 03:50 PM, Andrew Lunn wrote: > On Thu, Oct 29, 2015 at 03:45:24PM +0100, Neil Armstrong wrote: >> --- a/net/dsa/dsa.c >> +++ b/net/dsa/dsa.c >> @@ -459,6 +459,10 @@ static void dsa_switch_destroy(struct dsa_switch *ds) >> } >> >> mdiobus_unregister(ds->slave_mii_bus); >> + >> + /* Leave a chance to the driver to cleanup */ >> + if (ds->drv->remove) >> + ds->drv->remove(ds); >> } > > https://lkml.org/lkml/2015/10/28/532 ??? > > Andrew > Well, sorry, I did the change but it got lost when refactoring the ppu stuff.
Neil
| |