diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/net/irda/vlsi_ir.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/net/irda/vlsi_ir.c')
-rw-r--r-- | drivers/net/irda/vlsi_ir.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/irda/vlsi_ir.c b/drivers/net/irda/vlsi_ir.c index 7cfb8b6593c6..209d4bcfaced 100644 --- a/drivers/net/irda/vlsi_ir.c +++ b/drivers/net/irda/vlsi_ir.c | |||
@@ -59,7 +59,7 @@ MODULE_LICENSE("GPL"); | |||
59 | 59 | ||
60 | static /* const */ char drivername[] = DRIVER_NAME; | 60 | static /* const */ char drivername[] = DRIVER_NAME; |
61 | 61 | ||
62 | static struct pci_device_id vlsi_irda_table [] = { | 62 | static DEFINE_PCI_DEVICE_TABLE(vlsi_irda_table) = { |
63 | { | 63 | { |
64 | .class = PCI_CLASS_WIRELESS_IRDA << 8, | 64 | .class = PCI_CLASS_WIRELESS_IRDA << 8, |
65 | .class_mask = PCI_CLASS_SUBCLASS_MASK << 8, | 65 | .class_mask = PCI_CLASS_SUBCLASS_MASK << 8, |
@@ -431,8 +431,8 @@ static struct vlsi_ring *vlsi_alloc_ring(struct pci_dev *pdev, struct ring_descr | |||
431 | memset(rd, 0, sizeof(*rd)); | 431 | memset(rd, 0, sizeof(*rd)); |
432 | rd->hw = hwmap + i; | 432 | rd->hw = hwmap + i; |
433 | rd->buf = kmalloc(len, GFP_KERNEL|GFP_DMA); | 433 | rd->buf = kmalloc(len, GFP_KERNEL|GFP_DMA); |
434 | if (rd->buf == NULL | 434 | if (rd->buf == NULL || |
435 | || !(busaddr = pci_map_single(pdev, rd->buf, len, dir))) { | 435 | !(busaddr = pci_map_single(pdev, rd->buf, len, dir))) { |
436 | if (rd->buf) { | 436 | if (rd->buf) { |
437 | IRDA_ERROR("%s: failed to create PCI-MAP for %p", | 437 | IRDA_ERROR("%s: failed to create PCI-MAP for %p", |
438 | __func__, rd->buf); | 438 | __func__, rd->buf); |
@@ -955,8 +955,8 @@ static netdev_tx_t vlsi_hard_start_xmit(struct sk_buff *skb, | |||
955 | } | 955 | } |
956 | for(;;) { | 956 | for(;;) { |
957 | do_gettimeofday(&now); | 957 | do_gettimeofday(&now); |
958 | if (now.tv_sec > ready.tv_sec | 958 | if (now.tv_sec > ready.tv_sec || |
959 | || (now.tv_sec==ready.tv_sec && now.tv_usec>=ready.tv_usec)) | 959 | (now.tv_sec==ready.tv_sec && now.tv_usec>=ready.tv_usec)) |
960 | break; | 960 | break; |
961 | udelay(100); | 961 | udelay(100); |
962 | /* must not sleep here - called under netif_tx_lock! */ | 962 | /* must not sleep here - called under netif_tx_lock! */ |
@@ -1594,8 +1594,8 @@ static int vlsi_irda_init(struct net_device *ndev) | |||
1594 | * see include file for details why we need these 2 masks, in this order! | 1594 | * see include file for details why we need these 2 masks, in this order! |
1595 | */ | 1595 | */ |
1596 | 1596 | ||
1597 | if (pci_set_dma_mask(pdev,DMA_MASK_USED_BY_HW) | 1597 | if (pci_set_dma_mask(pdev,DMA_MASK_USED_BY_HW) || |
1598 | || pci_set_dma_mask(pdev,DMA_MASK_MSTRPAGE)) { | 1598 | pci_set_dma_mask(pdev,DMA_MASK_MSTRPAGE)) { |
1599 | IRDA_ERROR("%s: aborting due to PCI BM-DMA address limitations\n", __func__); | 1599 | IRDA_ERROR("%s: aborting due to PCI BM-DMA address limitations\n", __func__); |
1600 | return -1; | 1600 | return -1; |
1601 | } | 1601 | } |
@@ -1641,8 +1641,8 @@ vlsi_irda_probe(struct pci_dev *pdev, const struct pci_device_id *id) | |||
1641 | IRDA_MESSAGE("%s: IrDA PCI controller %s detected\n", | 1641 | IRDA_MESSAGE("%s: IrDA PCI controller %s detected\n", |
1642 | drivername, pci_name(pdev)); | 1642 | drivername, pci_name(pdev)); |
1643 | 1643 | ||
1644 | if ( !pci_resource_start(pdev,0) | 1644 | if ( !pci_resource_start(pdev,0) || |
1645 | || !(pci_resource_flags(pdev,0) & IORESOURCE_IO) ) { | 1645 | !(pci_resource_flags(pdev,0) & IORESOURCE_IO) ) { |
1646 | IRDA_ERROR("%s: bar 0 invalid", __func__); | 1646 | IRDA_ERROR("%s: bar 0 invalid", __func__); |
1647 | goto out_disable; | 1647 | goto out_disable; |
1648 | } | 1648 | } |