[BK PATCH] PCI reorg fix

From: Greg KH (greg@kroah.com)
Date: Thu May 09 2002 - 11:52:34 EST


Linus,

James pointed out that pci_alloc_consistent() and pci_free_consistent()
are allowed to be called, even if CONFIG_PCI is not enabled. So this
changeset moves these calls back into the arch/i386/kernel directory.

Pull from: bk://linuxusb.bkbits.net/linux-2.5-pci

As a side note, I don't think that any pci_* function should be able to
be called by non-pci drivers. Is it worth spending the time now in 2.5
to make these two functions not rely on 'struct pci_dev' and fix up all
of the drivers and architectures and documentation to reflect this?
Possible names would be alloc_consistent() and free_consistent()?

thanks,

greg k-h

ChangeSet@1.557, 2002-05-09 10:35:57-07:00, greg@kroah.com
  moved the pci_alloc_consistent() and pci_free_consistent() functions back
  into arch/i386/kernel as they are needed even if CONFIG_PCI is not enabled.

 arch/i386/pci/dma.c | 37 -------------------------------------
 arch/i386/kernel/Makefile | 2 +-
 arch/i386/kernel/pci-dma.c | 37 +++++++++++++++++++++++++++++++++++++
 arch/i386/pci/Makefile | 2 +-
 4 files changed, 39 insertions(+), 39 deletions(-)

-
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/



This archive was generated by hypermail 2b29 : Tue May 14 2002 - 12:00:12 EST