the patch to ndis_init_netdev() and SET_NETDEV_DEV() to add sysfs
introduces some errors when compiling on old kernels since
'struct device' and SET_NETDEV_DEV are not defined, and 'struct pci_dev'
has no 'dev' member.
With the patch in attachment I can compile on 2.4.22 (from FC1, but
should be the same with the vanilla kernel).
[I know, I know ... it's a very old kernel :-( ]
It defines SET_NETDEV_DEV as in 2.4.27, and ifdef's out the pieces
involving 'struct device' and 'pdev->dev'.
It's an ugly hack, and I'm sending it only to show where I have problems.