Re: [RFC][PATCH] move dma_mask into struct device

Mike Anderson
2002-11-16T00:19:14Z

J.E.J. Bottomley [James.Bottomley@steeleye.com] wrote:

> ===== drivers/pci/probe.c 1.17 vs edited =====
> --- 1.17/drivers/pci/probe.c Fri Nov 1 12:33:02 2002
> +++ edited/drivers/pci/probe.c Fri Nov 15 14:00:46 2002
> @@ -449,6 +449,7 @@
> /* now put in global tree */
> strcpy(dev->dev.name,dev->name);
> strcpy(dev->dev.bus_id,dev->slot_name);
> + dev->dev->dma_mask = &dev->dma_mask;

I got a compile error here. This should be.
dev->dev.dma_mask = &dev->dma_mask;

I did not have a current bk handy on the lab machine, but I ran it on
a 2.5.47 view with a few offset warnings.

The machine is a 2x pci systems with the following drivers loaded:
aic7xxx, ips, qlogicisp.

It just booted and ran a little IO.

-andmike
--
Michael Anderson
andmike@us.ibm.com