diff options
Diffstat (limited to 'drivers/misc/parport_procfs.c')
-rw-r--r-- | drivers/misc/parport_procfs.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/misc/parport_procfs.c b/drivers/misc/parport_procfs.c index 5365c0df7..0fd03fddf 100644 --- a/drivers/misc/parport_procfs.c +++ b/drivers/misc/parport_procfs.c @@ -1,4 +1,4 @@ -/* $Id: parport_procfs.c,v 1.1 1997/07/25 01:53:18 ralf Exp $ +/* $Id: parport_procfs.c,v 1.1 1997/07/29 03:59:13 ralf Exp $ * Parallel port /proc interface code. * * Authors: David Campbell <campbell@tirian.che.curtin.edu.au> @@ -8,12 +8,12 @@ * and Philip Blundell <Philip.Blundell@pobox.com> */ +#include <linux/stddef.h> #include <linux/tasks.h> #include <asm/ptrace.h> #include <asm/io.h> #include <asm/dma.h> -#include <linux/config.h> #include <linux/delay.h> #include <linux/errno.h> #include <linux/interrupt.h> @@ -131,7 +131,10 @@ static int hardware_read_proc(char *page, char **start, off_t off, len += sprintf(page+len, "irq:\tnone\n"); else len += sprintf(page+len, "irq:\t%d\n",pp->irq); - len += sprintf(page+len, "dma:\t%d\n",pp->dma); + if (pp->dma == PARPORT_DMA_NONE) + len += sprintf(page+len, "dma:\tnone\n"); + else + len += sprintf(page+len, "dma:\t%d\n",pp->dma); #if 0 |