> 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