Re: [patch 8/9]Four new i2c drivers and __init/__exit cleanup to

Jeff Garzik (jgarzik@mandrakesoft.com)
Sun, 15 Sep 2002 19:16:16 -0400


Albert Cranford wrote:
> --- linux/drivers/i2c/i2c-adap-ibm_ocp.c.orig 2002-09-13 01:16:58.000000000 -0400
> +++ linux-2.5.34/drivers/i2c/i2c-adap-ibm_ocp.c 2002-09-15 01:13:57.000000000 -0400
> @@ -90,6 +90,14 @@
> static wait_queue_head_t iic_wait[IIC_NUMS];
> static int iic_pending;
>
> +#ifdef MODULE
> +static
> +#else
> +extern
> +#endif
> + int __init iic_ibmocp_init(void);
> +static void __exit iic_ibmocp_exit(void);
> +

ug, don't add this crap to the codebase...

> --- linux/drivers/i2c/i2c-algo-8xx.c.orig 2002-09-13 01:17:07.000000000 -0400
> +++ linux-2.5.34/drivers/i2c/i2c-algo-8xx.c 2002-09-13 01:47:42.000000000 -0400
> @@ -51,6 +51,13 @@
> int cpm_scan = 1;
> int cpm_debug = 0;
>
> +#ifdef MODULE
> +static
> +#else
> +extern
> +#endif
> + int __init i2c_algo_8xx_init (void);
> +

likewise [repeated many times]

-
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/