Re: [PATCH][OBVIOUS] 3c515.c: Enable ISAPNP when built as a module.

From: Keith Owens
Date: Mon Dec 01 2003 - 22:21:49 EST


On Tue, 2 Dec 2003 02:40:28 +0000,
Matthew Bell <m.bell@xxxxxxxxxx> wrote:
>--- linux-2.4.19.orig/drivers/net/3c515.c 2002-02-25 19:37:59.000000000
>+0000
>+++ linux-2.4.19/drivers/net/3c515.c 2002-08-03 18:24:05.000000000 +0100
>@@ -370,7 +370,7 @@
> { "Default", 0, 0xFF, XCVR_10baseT, 10000},
> };
>
>
>-#ifdef CONFIG_ISAPNP
>+#if defined(CONFIG_ISAPNP) || (defined (MODULE) && defined
>(CONFIG_ISAPNP_MODULE))

Your mailer wrapped the lines.

Only test CONFIG_ISAPNP || CONFIG_ISAPNP_MODULE, not MODULE.
CONFIG_foo_MODULE can only be defined when MODULE is defined.

#if defined(CONFIG_ISAPNP) || defined(CONFIG_ISAPNP_MODULE)

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html