/* I just deleted auto_irq.c, since it was never built...  */
static int __devinit smc_findirq(struct smc_local *lp)
/* I just deleted auto_irq.c, since it was never built...  */
static int __devinit smc_findirq(struct smc_local *lp)
{
	void __iomem *ioaddr = lp->base;
	int timeout = 20;
	unsigned long cookie;
	DBG(2, "%s: %s\n", CARDNAME, __func__);
	cookie = probe_irq_on();
	SMC_SELECT_BANK(lp, 2);
	SMC_SET_INT_MASK(lp, IM_ALLOC_INT);
	SMC_SET_MMU_CMD(lp, MC_ALLOC | 1);
	do {
		int int_status;
		udelay(10);
		int_status = SMC_GET_INT(lp);
		if (int_status & IM_ALLOC_INT)
			break;
	} while (--timeout);
	SMC_SET_INT_MASK(lp, 0);
	return probe_irq_off(cookie);
}