[PATCH 1/13] pcmcia: avoid macro usage

Christoph Hellwig hch at infradead.org
Thu Sep 8 06:59:37 EDT 2005


On Wed, Sep 07, 2005 at 11:36:39PM +0200, Dominik Brodowski wrote:
> From: Pavel Machek <pavel at ucw.cz>
> 
> Fix macro abuse in pcmcia.
> 
> Signed-off-by: Pavel Machek <pavel at suse.cz>
> Signed-off-by: Dominik Brodowski <linux at dominikbrodowski.net>
> ---
> 
>  drivers/pcmcia/cistpl.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> Index: 2.6.13/drivers/pcmcia/cistpl.c
> ===================================================================
> --- 2.6.13.orig/drivers/pcmcia/cistpl.c
> +++ 2.6.13/drivers/pcmcia/cistpl.c
> @@ -60,9 +60,9 @@ static const u_int exponent[] = {
>  
>  /* Parameters that can be set with 'insmod' */
>  
> -#define INT_MODULE_PARM(n, v) static int n = v; module_param(n, int, 0444)
> -
> -INT_MODULE_PARM(cis_width,	0);		/* 16-bit CIS? */
> +/* 16-bit CIS? */
> +static int cis_width = 0;

no need to initialize this to zero.




More information about the linux-pcmcia mailing list