lkml.org 
[lkml]   [2003]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[bug 1079] [PATCH] 2.6.0-test3: pmac ide driver doesn't compile
Date
Hi all,
the pmac IDE driver (drivers/ide/ppc/pmac.c) doesn't compile due to a change
in ide_drive_s struct.

Patch follows.

-- Francesco

--- old/drivers/ide/ppc/pmac.c 2003-08-11 11:45:27.000000000 +0200
+++ linux-2.6.0-test3/drivers/ide/ppc/pmac.c 2003-08-11 11:40:11.000000000
+0200
@@ -942,7 +942,7 @@
if (hwif->sg_dma_active)
BUG();

- nents = blk_rq_map_sg(&drive->queue, rq, sg);
+ nents = blk_rq_map_sg(drive->queue, rq, sg);

if (rq_data_dir(rq) == READ)
pmif->sg_dma_direction = PCI_DMA_FROMDEVICE;
@@ -1589,7 +1589,7 @@
HWGROUP(drive)->busy = 1;
pmac_ide_dma_check(drive);
HWGROUP(drive)->busy = 0;
- if (!list_empty(&drive->queue.queue_head))
+ if (!list_empty(&drive->queue->queue_head))
ide_do_request(HWGROUP(drive), 0);
spin_unlock_irq(&ide_lock);
}
@@ -1673,7 +1673,7 @@
/* We resume processing on the HW group */
spin_lock_irqsave(&ide_lock, flags);
HWGROUP(drive)->busy = 0;
- if (!list_empty(&drive->queue.queue_head))
+ if (!list_empty(&drive->queue->queue_head))
ide_do_request(HWGROUP(drive), 0);
spin_unlock_irqrestore(&ide_lock, flags);
}

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

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.028 / U:1.968 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site