X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fnet%2Fsunhme.c;h=1b2c4b9274b8481faded42c3a5ed61c7bb3bb8c7;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=2cb1ac95a8bc26c8cc3bdb9d32317ed0944aabad;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c index 2cb1ac95a..1b2c4b927 100644 --- a/drivers/net/sunhme.c +++ b/drivers/net/sunhme.c @@ -36,9 +36,9 @@ static char version[] = #include #include #include +#include #include -#include #include #include #include @@ -73,7 +73,7 @@ static char version[] = static int macaddr[6]; /* accept MAC address of the form macaddr=0x08,0x00,0x20,0x30,0x40,0x50 */ -MODULE_PARM(macaddr, "6i"); +module_param_array(macaddr, int, NULL, 0); MODULE_PARM_DESC(macaddr, "Happy Meal MAC address to set"); MODULE_LICENSE("GPL"); @@ -2948,12 +2948,12 @@ static int is_quattro_p(struct pci_dev *pdev) } /* Fetch MAC address from vital product data of PCI ROM. */ -static void find_eth_addr_in_vpd(void *rom_base, int len, int index, unsigned char *dev_addr) +static void find_eth_addr_in_vpd(void __iomem *rom_base, int len, int index, unsigned char *dev_addr) { int this_offset; for (this_offset = 0x20; this_offset < len; this_offset++) { - void *p = rom_base + this_offset; + void __iomem *p = rom_base + this_offset; if (readb(p + 0) != 0x90 || readb(p + 1) != 0x00 || @@ -2980,7 +2980,7 @@ static void find_eth_addr_in_vpd(void *rom_base, int len, int index, unsigned ch static void get_hme_mac_nonsparc(struct pci_dev *pdev, unsigned char *dev_addr) { u32 rom_reg_orig; - void *p; + void __iomem *p; int index; index = 0; @@ -3257,7 +3257,7 @@ static int __init happy_meal_pci_init(struct pci_dev *pdev) return 0; err_out_iounmap: - iounmap((void *)hp->gregs); + iounmap(hp->gregs); err_out_free_res: pci_release_regions(pdev); @@ -3390,7 +3390,7 @@ static void __exit happy_meal_cleanup_module(void) PAGE_SIZE, hp->happy_block, hp->hblock_dvma); - iounmap((void *)hp->gregs); + iounmap(hp->gregs); pci_release_regions(hp->happy_dev); } #endif