* [PATCH] parport_pc.c bugfix
@ 2001-10-09 23:43 Thomas Hood
0 siblings, 0 replies; only message in thread
From: Thomas Hood @ 2001-10-09 23:43 UTC (permalink / raw)
To: linux-kernel; +Cc: alan
Self-explanatory patch:
--- linux-2.4.10-ac10/drivers/parport/parport_pc.c Mon Oct 8 22:41:14 2001
+++ linux-2.4.10-ac10-fix/drivers/parport/parport_pc.c Tue Oct 9 19:36:58 2001
@@ -2826,7 +2826,7 @@
if ( UNSET(dev->irq_resource[0]) ) {
irq = PARPORT_IRQ_NONE;
} else {
- if ( dev->irq_resource[0].start == -1 ) {
+ if ( dev->irq_resource[0].start == (unsigned long)-1 ) {
irq = PARPORT_IRQ_NONE;
printk(", irq disabled");
} else {
@@ -2838,12 +2838,12 @@
if ( UNSET(dev->dma_resource[0]) ) {
dma = PARPORT_DMA_NONE;
} else {
- if ( dev->dma_resource[0].start == -1 ) {
+ if ( dev->dma_resource[0].start == (unsigned long)-1 ) {
dma = PARPORT_DMA_NONE;
printk(", dma disabled");
} else {
dma = dev->dma_resource[0].start;
- printk(", dma %d",irq);
+ printk(", dma %d",dma);
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-10-09 23:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-09 23:43 [PATCH] parport_pc.c bugfix Thomas Hood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox