Commit dc94c230 authored by Jeff Garzik's avatar Jeff Garzik

[netdrvr sis190] small bug fixes

* call pci_set_dma_mask
* remove erroneous call to unregister_netdev in _init_board()
parent 44dbb4fd
...@@ -468,6 +468,10 @@ SiS190_init_board(struct pci_dev *pdev, struct net_device **dev_out, ...@@ -468,6 +468,10 @@ SiS190_init_board(struct pci_dev *pdev, struct net_device **dev_out,
if (rc) if (rc)
goto err_out; goto err_out;
rc = pci_set_dma_mask(pdev, 0xffffffffULL);
if (rc)
goto err_out;
mmio_start = pci_resource_start(pdev, 0); mmio_start = pci_resource_start(pdev, 0);
mmio_end = pci_resource_end(pdev, 0); mmio_end = pci_resource_end(pdev, 0);
mmio_flags = pci_resource_flags(pdev, 0); mmio_flags = pci_resource_flags(pdev, 0);
...@@ -519,7 +523,6 @@ SiS190_init_board(struct pci_dev *pdev, struct net_device **dev_out, ...@@ -519,7 +523,6 @@ SiS190_init_board(struct pci_dev *pdev, struct net_device **dev_out,
err_out: err_out:
pci_disable_device(pdev); pci_disable_device(pdev);
unregister_netdev(dev);
kfree(dev); kfree(dev);
return rc; return rc;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment