orinoco: allow driver to specify netdev_ops
Allow the main drivers to specify a custom version of the net_device_ops structure. This is required by orinoco_usb to supply a separate transmit function. Export existing net_device_ops callbacks so that the drivers can reuse some of the existing code. Signed-off-by: David Kilroy <kilroyd@googlemail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
b42f2074de
commit
593ef09c9e
9 changed files with 37 additions and 16 deletions
|
@ -156,7 +156,7 @@ static int orinoco_tmd_init_one(struct pci_dev *pdev,
|
|||
goto fail;
|
||||
}
|
||||
|
||||
err = orinoco_if_add(priv, 0, 0);
|
||||
err = orinoco_if_add(priv, 0, 0, NULL);
|
||||
if (err) {
|
||||
printk(KERN_ERR PFX "orinoco_if_add() failed\n");
|
||||
goto fail;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue