Commit 3f576ab5 authored by James Bottomley's avatar James Bottomley

Remove linux/pci.h dependency in SCSI 53c700

The consolidation of the SCSI data direction flags eliminate the
need for it.
parent fa25dfc8
...@@ -133,7 +133,6 @@ ...@@ -133,7 +133,6 @@
#include <asm/byteorder.h> #include <asm/byteorder.h>
#include <linux/blk.h> #include <linux/blk.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/pci.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include "scsi.h" #include "scsi.h"
...@@ -564,8 +563,7 @@ NCR_700_unmap(struct NCR_700_Host_Parameters *hostdata, Scsi_Cmnd *SCp, ...@@ -564,8 +563,7 @@ NCR_700_unmap(struct NCR_700_Host_Parameters *hostdata, Scsi_Cmnd *SCp,
{ {
if(SCp->sc_data_direction != SCSI_DATA_NONE && if(SCp->sc_data_direction != SCSI_DATA_NONE &&
SCp->sc_data_direction != SCSI_DATA_UNKNOWN) { SCp->sc_data_direction != SCSI_DATA_UNKNOWN) {
enum dma_data_direction direction = enum dma_data_direction direction = SCp->sc_data_direction;
(enum dma_data_direction)scsi_to_pci_dma_dir(SCp->sc_data_direction);
if(SCp->use_sg) { if(SCp->use_sg) {
dma_unmap_sg(hostdata->dev, SCp->buffer, dma_unmap_sg(hostdata->dev, SCp->buffer,
SCp->use_sg, direction); SCp->use_sg, direction);
...@@ -1842,7 +1840,7 @@ NCR_700_queuecommand(Scsi_Cmnd *SCp, void (*done)(Scsi_Cmnd *)) ...@@ -1842,7 +1840,7 @@ NCR_700_queuecommand(Scsi_Cmnd *SCp, void (*done)(Scsi_Cmnd *))
} }
/* now build the scatter gather list */ /* now build the scatter gather list */
direction = (enum dma_data_direction)scsi_to_pci_dma_dir(SCp->sc_data_direction); direction = SCp->sc_data_direction;
if(move_ins != 0) { if(move_ins != 0) {
int i; int i;
int sg_count; int sg_count;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment