patch-2.1.48 linux/drivers/misc/parport_procfs.c
Next file: linux/drivers/misc/parport_share.c
Previous file: linux/drivers/misc/parport_pc.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Sun Aug 3 00:08:51 1997
- Orig file:
v2.1.47/linux/drivers/misc/parport_procfs.c
- Orig date:
Sun Jul 27 12:11:00 1997
diff -u --recursive --new-file v2.1.47/linux/drivers/misc/parport_procfs.c linux/drivers/misc/parport_procfs.c
@@ -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 @@
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
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov