[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240321080155.1352b481@kernel.org>
Date: Thu, 21 Mar 2024 08:01:55 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Andrew Lunn <andrew@...n.ch>
Cc: Florian Fainelli <f.fainelli@...il.com>, Vladimir Oltean
<olteanv@...il.com>, "David S. Miller" <davem@...emloft.net>, Eric Dumazet
<edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>, Russell King
<linux@...linux.org.uk>, Gregory Clement <gregory.clement@...tlin.com>,
netdev@...r.kernel.org
Subject: Re: [PATCH RFC 2/7] net: Add helpers for netdev LEDs
On Sun, 17 Mar 2024 16:45:15 -0500 Andrew Lunn wrote:
> + struct device *dev = &ndev->dev;
> + struct netdev_led *netdev_led;
> + struct led_classdev *cdev;
> + u32 index;
> + int err;
> +
> + netdev_led = devm_kzalloc(dev, sizeof(*netdev_led), GFP_KERNEL);
> + if (!netdev_led)
> + return -ENOMEM;
Are we guaranteed to have a real bus device under ndev->dev ?
I'm not aware of any use of devres in netdev core today.
Powered by blists - more mailing lists