[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <fdbe6034-0c03-40ff-a0dc-e36a3b44d00b@lunn.ch>
Date: Thu, 13 Apr 2023 18:28:19 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Ladislav Michl <oss-lists@...ops.cz>
Cc: linux-staging@...ts.linux.dev, netdev@...r.kernel.org,
linux-mips@...r.kernel.org,
Chris Packham <chris.packham@...iedtelesis.co.nz>
Subject: Re: [PATCH 1/3] staging: octeon: don't panic
> Problem with this code is that it registers netdevices in for loop,
> so the only device available here is parent device to all that
> netdevices (which weren't registered).
You always have pdev->dev, which you can use until you have a
registered netdev. That is a common pattern.
Andrew
Powered by blists - more mailing lists