Changeset 1752

Show
Ignore:
Timestamp:
10/14/06 07:57:47 (2 years ago)
Author:
kelmo
Message:

Starting linux kernel v2.6.19 and later interrupt handlers are not passed
(struct pt_regs *regs).

Signed-off-by: Žilvinas Valinskas <valins@soften.ktu.lt>
Signed-off-by: Kel Modderman <kelmo@kanotixguide.org>

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ath/if_ath.c

    r1751 r1752  
    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; 
  • trunk/ath/if_athvar.h

    r1726 r1752  
    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 *);