[IRDA] vlsi_ir.{h,c}: remove kernel 2.4 code

This patch removes kernel 2.4 compatibility code.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Adrian Bunk and committed by David S. Miller 778a43fd fb7e2399

+8 -41
+8 -8
drivers/net/irda/vlsi_ir.c
··· 166 166 unsigned i; 167 167 168 168 seq_printf(seq, "\n%s (vid/did: %04x/%04x)\n", 169 - PCIDEV_NAME(pdev), (int)pdev->vendor, (int)pdev->device); 169 + pci_name(pdev), (int)pdev->vendor, (int)pdev->device); 170 170 seq_printf(seq, "pci-power-state: %u\n", (unsigned) pdev->current_state); 171 171 seq_printf(seq, "resources: irq=%u / io=0x%04x / dma_mask=0x%016Lx\n", 172 172 pdev->irq, (unsigned)pci_resource_start(pdev, 0), (unsigned long long)pdev->dma_mask); ··· 1401 1401 1402 1402 if (vlsi_start_hw(idev)) 1403 1403 IRDA_ERROR("%s: failed to restart hw - %s(%s) unusable!\n", 1404 - __FUNCTION__, PCIDEV_NAME(idev->pdev), ndev->name); 1404 + __FUNCTION__, pci_name(idev->pdev), ndev->name); 1405 1405 else 1406 1406 netif_start_queue(ndev); 1407 1407 } ··· 1643 1643 pdev->current_state = 0; /* hw must be running now */ 1644 1644 1645 1645 IRDA_MESSAGE("%s: IrDA PCI controller %s detected\n", 1646 - drivername, PCIDEV_NAME(pdev)); 1646 + drivername, pci_name(pdev)); 1647 1647 1648 1648 if ( !pci_resource_start(pdev,0) 1649 1649 || !(pci_resource_flags(pdev,0) & IORESOURCE_IO) ) { ··· 1728 1728 1729 1729 pci_set_drvdata(pdev, NULL); 1730 1730 1731 - IRDA_MESSAGE("%s: %s removed\n", drivername, PCIDEV_NAME(pdev)); 1731 + IRDA_MESSAGE("%s: %s removed\n", drivername, pci_name(pdev)); 1732 1732 } 1733 1733 1734 1734 #ifdef CONFIG_PM ··· 1748 1748 1749 1749 if (!ndev) { 1750 1750 IRDA_ERROR("%s - %s: no netdevice \n", 1751 - __FUNCTION__, PCIDEV_NAME(pdev)); 1751 + __FUNCTION__, pci_name(pdev)); 1752 1752 return 0; 1753 1753 } 1754 1754 idev = ndev->priv; ··· 1759 1759 pdev->current_state = state.event; 1760 1760 } 1761 1761 else 1762 - IRDA_ERROR("%s - %s: invalid suspend request %u -> %u\n", __FUNCTION__, PCIDEV_NAME(pdev), pdev->current_state, state.event); 1762 + IRDA_ERROR("%s - %s: invalid suspend request %u -> %u\n", __FUNCTION__, pci_name(pdev), pdev->current_state, state.event); 1763 1763 up(&idev->sem); 1764 1764 return 0; 1765 1765 } ··· 1787 1787 1788 1788 if (!ndev) { 1789 1789 IRDA_ERROR("%s - %s: no netdevice \n", 1790 - __FUNCTION__, PCIDEV_NAME(pdev)); 1790 + __FUNCTION__, pci_name(pdev)); 1791 1791 return 0; 1792 1792 } 1793 1793 idev = ndev->priv; ··· 1795 1795 if (pdev->current_state == 0) { 1796 1796 up(&idev->sem); 1797 1797 IRDA_WARNING("%s - %s: already resumed\n", 1798 - __FUNCTION__, PCIDEV_NAME(pdev)); 1798 + __FUNCTION__, pci_name(pdev)); 1799 1799 return 0; 1800 1800 } 1801 1801
-33
drivers/net/irda/vlsi_ir.h
··· 41 41 #define PCI_CLASS_SUBCLASS_MASK 0xffff 42 42 #endif 43 43 44 - /* in recent 2.5 interrupt handlers have non-void return value */ 45 - #ifndef IRQ_RETVAL 46 - typedef void irqreturn_t; 47 - #define IRQ_NONE 48 - #define IRQ_HANDLED 49 - #define IRQ_RETVAL(x) 50 - #endif 51 - 52 - /* some stuff need to check kernelversion. Not all 2.5 stuff was present 53 - * in early 2.5.x - the test is merely to separate 2.4 from 2.5 54 - */ 55 - #include <linux/version.h> 56 - 57 - #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) 58 - 59 - /* PDE() introduced in 2.5.4 */ 60 - #ifdef CONFIG_PROC_FS 61 - #define PDE(inode) ((inode)->i_private) 62 - #endif 63 - 64 - /* irda crc16 calculation exported in 2.5.42 */ 65 - #define irda_calc_crc16(fcs,buf,len) (GOOD_FCS) 66 - 67 - /* we use this for unified pci device name access */ 68 - #define PCIDEV_NAME(pdev) ((pdev)->name) 69 - 70 - #else /* 2.5 or later */ 71 - 72 - /* whatever we get from the associated struct device - bus:slot:dev.fn id */ 73 - #define PCIDEV_NAME(pdev) (pci_name(pdev)) 74 - 75 - #endif 76 - 77 44 /* ================================================================ */ 78 45 79 46 /* non-standard PCI registers */