Re: PCMCIA + 2.2.0-pre1

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 29 Dec 1998 22:45:31 +0000 (GMT)


> #if (LINUX_VERSION_CODE < VERSION(2,1,23))
> if (*driver_template.usage_count != 0) {
> -#else
> +#elif (LINUX_VERSION_CODE < VERSION(2,1,133))
> if (driver_template.module->usecount != 0) {
> +#else
> + if (GET_USE_COUNT(driver_template.module) != 0) {

It would be better if the PCMCIA headers did

#ifndef GET_USE_COUNT
#define GET_USE_COUNT...
#endif

probably ?

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