summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJames Bottomley <jejb@mulgrave.(none)>2002-11-22 04:39:35 -0600
committerJames Bottomley <jejb@mulgrave.(none)>2002-11-22 04:39:35 -0600
commit8ab1bc19e974fdebe76c065fe444979c84ba2f74 (patch)
treedfa5f2f651e11de5c6d0eaffc14c1d40c13a4ba9 /drivers
parentfc983daf8fe2318d66f416931b0f6b1e469e78e6 (diff)
move dma_mask into struct device
Attached is a patch which moves dma_mask into struct device and cleans up the scsi mid-layer to use it (instead of using struct pci_dev). The advantage to doing this is probably most apparent on non-pci bus architectures where currently you have to construct a fake pci_dev just so you can get the bounce buffers to work correctly. The patch tries to perturb the minimum amount of code, so dma_mask in struct device is simply a pointer to the one in pci_dev. However, it will make it easy for me now to add generic device to MCA without having to go the fake pci route.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/probe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 5dfb1af81376..cfe5444f9fac 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -448,6 +448,7 @@ struct pci_dev * __devinit pci_scan_device(struct pci_dev *temp)
/* now put in global tree */
strcpy(dev->dev.bus_id,dev->slot_name);
+ dev->dev.dma_mask = &dev->dma_mask;
device_register(&dev->dev);
return dev;