]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: pcnet: Wrap devbusfn into private data
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 17 May 2020 14:31:04 +0000 (16:31 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Thu, 18 Jun 2020 17:34:40 +0000 (19:34 +0200)
commit60074d9d3ea048ea0ca369687aaaaed65695fc44
tree10f6c8d8acd30c0a7fe29f8100ef9569bec51432
parentd20e857e6b60720ff8ca98f8a4411336303e8d5f
net: pcnet: Wrap devbusfn into private data

Instead of using eth_device priv for this PCI devbusfn, free it
so it could be used for driver private data, and wrap devbusfn
into those driver private data.

Note that using the name dev for the variable is a trick left for
later, when DM support is in place, so dm_pci_virt_to_mem() can be
used with minimal ifdeffery.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/pcnet.c