Ticket #950: 2.6.19-ptregs-fix.diff

File 2.6.19-ptregs-fix.diff, 1.3 kB (added by Žilvinas Valinskas <valins@soften.ktu.lt>, 2 years ago)

Signed-off-by: Žilvinas Valinskas <valins@soften.ktu.lt>

  • a/ath/if_ath.c

    old new  
    15831583 * Interrupt handler.  Most of the actual processing is deferred. 
    15841584 */ 
    15851585irqreturn_t 
     1586#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2.6.19)) 
     1587ath_intr(int irq, void *dev_id) 
     1588#else 
    15861589ath_intr(int irq, void *dev_id, struct pt_regs *regs) 
     1590#endif 
    15871591{ 
    15881592        struct net_device *dev = dev_id; 
    15891593        struct ath_softc *sc = dev->priv; 
  • a/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