Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] airo.c/airo_cs.c: correct prototypes

This patch creates a file airo.h containing prototypes of the global
functions in airo.c used by airo_cs.c .

If you got strange problems with either airo_cs devices or in any other
completely unrelated part of the kernel shortly or long after a airo_cs
device was detected by the kernel, this might have been caused by the
fact that caller and callee disagreed regarding the size of the first
argument to init_airo_card()...

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Adrian Bunk and committed by
John W. Linville
d3808760 05d0f1cf

+13 -4
+2
drivers/net/wireless/airo.c
··· 47 47 #include <linux/pci.h> 48 48 #include <asm/uaccess.h> 49 49 50 + #include "airo.h" 51 + 50 52 #ifdef CONFIG_PCI 51 53 static struct pci_device_id card_ids[] = { 52 54 { 0x14b9, 1, PCI_ANY_ID, PCI_ANY_ID, },
+9
drivers/net/wireless/airo.h
··· 1 + #ifndef _AIRO_H_ 2 + #define _AIRO_H_ 3 + 4 + struct net_device *init_airo_card(unsigned short irq, int port, int is_pcmcia, 5 + struct device *dmdev); 6 + int reset_airo_card(struct net_device *dev); 7 + void stop_airo_card(struct net_device *dev, int freeres); 8 + 9 + #endif /* _AIRO_H_ */
+2 -4
drivers/net/wireless/airo_cs.c
··· 42 42 #include <asm/io.h> 43 43 #include <asm/system.h> 44 44 45 + #include "airo.h" 46 + 45 47 /* 46 48 All the PCMCIA modules use PCMCIA_DEBUG to control debugging. If 47 49 you do not define PCMCIA_DEBUG at all, all the debug code will be ··· 79 77 insertion and ejection events. They are invoked from the airo_cs 80 78 event handler. 81 79 */ 82 - 83 - struct net_device *init_airo_card( int, int, int, struct device * ); 84 - void stop_airo_card( struct net_device *, int ); 85 - int reset_airo_card( struct net_device * ); 86 80 87 81 static void airo_config(dev_link_t *link); 88 82 static void airo_release(dev_link_t *link);