Subject: Re: [PATCH RFC 2/7] net: Add helpers for netdev LEDs

From: Jakub Kicinski <[email-masked]>
Date: Thu, 21 Mar 2024 08:43:21 -0700

On Thu, 21 Mar 2024 16:35:20 +0100 Andrew Lunn wrote:
> The struct device is actually part of struct net_device. It is not a
> pointer to a bus device. We have register_netdevice() ->
> netdev_register_kobject() -> device_initialize(). So the struct device
> in struct net_device to registered to the driver core.
> 
> unregister_netdevice_many_notify() -> netdev_unregister_kobject() ->
> device_del() -> devres_release_all().

Ah, I thought it's only triggered on bus remove. I guess it must be
triggered on both.