diff options
Diffstat (limited to 'include/linux/parport.h')
| -rw-r--r-- | include/linux/parport.h | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/include/linux/parport.h b/include/linux/parport.h index a0bc9e0267b7..999eddd619b7 100644 --- a/include/linux/parport.h +++ b/include/linux/parport.h @@ -180,6 +180,8 @@ struct ieee1284_info {  	struct semaphore irq;  }; +#define PARPORT_NAME_MAX_LEN 15 +  /* A parallel port */  struct parport {  	unsigned long base;	/* base address */ @@ -514,7 +516,7 @@ extern int parport_device_proc_register(struct pardevice *device);  extern int parport_device_proc_unregister(struct pardevice *device);  /* If PC hardware is the only type supported, we can optimise a bit.  */ -#if !defined(CONFIG_PARPORT_NOT_PC) +#if !defined(CONFIG_PARPORT_NOT_PC) && defined(CONFIG_PARPORT_PC)  #include <linux/parport_pc.h>  #define parport_write_data(p,x)            parport_pc_write_data(p,x) |