/* * Function w83977af_init () * * Initialize chip. Just try to find out how many chips we are dealing with * and where they are */ static int __init w83977af_init(void) { int i; for (i=0; i < ARRAY_SIZE(dev_self) && io[i] < 2000; i++) { if (w83977af_open(i, io[i], irq[i], dma[i]) == 0) return 0; } return -ENODEV; }
/* * Function w83977af_init () * * Initialize chip. Just try to find out how many chips we are dealing with * and where they are */ static int __init w83977af_init(void) { int i; IRDA_DEBUG(0, "%s()\n", __func__ ); for (i=0; i < ARRAY_SIZE(dev_self) && io[i] < 2000; i++) { if (w83977af_open(i, io[i], irq[i], dma[i]) == 0) return 0; } return -ENODEV; }
/* * Function w83977af_init () * * Initialize chip. Just try to find out how many chips we are dealing with * and where they are */ static int __init w83977af_init(void) { int i; IRDA_DEBUG(0, "%s()\n", __FUNCTION__ ); for (i=0; (io[i] < 2000) && (i < 4); i++) { if (w83977af_open(i, io[i], irq[i], dma[i]) == 0) return 0; } return -ENODEV; }
/* * Function w83977af_init () * * Initialize chip. Just try to find out how many chips we are dealing with * and where they are */ int __init w83977af_init(void) { int i; IRDA_DEBUG(0, __FUNCTION__ "()\n"); for (i=0; (io[i] < 2000) && (i < 4); i++) { int ioaddr = io[i]; if (check_region(ioaddr, CHIP_IO_EXTENT) < 0) continue; if (w83977af_open(i, io[i], irq[i], dma[i]) == 0) return 0; } return -ENODEV; }