Ticket #950: madwifi-2.6.19-ptregs-fix.diff

File madwifi-2.6.19-ptregs-fix.diff, 1.1 kB (added by kelmo, 2 years ago)

revised compile fix

  • ath/if_athvar.h

    old new  
    726726void ath_resume(struct net_device *); 
    727727void ath_suspend(struct net_device *); 
    728728void ath_shutdown(struct net_device *); 
    729 irqreturn_t ath_intr(int, void *, struct pt_regs *); 
     729#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) 
     730irqreturn_t ath_intr(int, void *); 
     731#else 
     732irqreturn_t ath_intr(int, void *, struct pt_regs *regs); 
     733#endif 
    730734int ath_ioctl_ethtool(struct ath_softc *, int, void __user *); 
    731735void bus_read_cachesize(struct ath_softc *, u_int8_t *); 
    732736#ifdef CONFIG_SYSCTL 
  • ath/if_ath.c

    old new  
    15991599 * Interrupt handler.  Most of the actual processing is deferred. 
    16001600 */ 
    16011601irqreturn_t 
     1602#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) 
     1603ath_intr(int irq, void *dev_id) 
     1604#else 
    16021605ath_intr(int irq, void *dev_id, struct pt_regs *regs) 
     1606#endif 
    16031607{ 
    16041608        struct net_device *dev = dev_id; 
    16051609        struct ath_softc *sc = dev->priv;