Re: Bad udelay usage in drivers/net/aironet4500_card.c

Paul Gortmaker (p_gortmaker@yahoo.com)
Sat, 19 May 2001 03:45:19 -0400


H . J . Lu wrote:
>
> In 2.4.4, drivers/net/aironet4500_card.c has

> udelay(100000);
> udelay(200000);
> udelay(250000);

>
> But on ia32, you cannot use more than 20000 for udelay (). You will get
> undefined symbol, __bad_udelay.

mv driver.c driver.c~
sed 's/udelay\( *\)(\([1-9][0-9]*\)000)/mdelay\1(\2)/' <driver.c~>driver.c

...keeps foo(...) or foo (...) as per original author's taste.
^ ^
Paul.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/