diff --git a/include/asm-i386/io.h b/include/asm-i386/io.h index a54484360fa95f1d4be4077790c7bd6296a822f3..44996d06ecc3c34d304b50d2e255a0ef3dcfbe18 100644 --- a/include/asm-i386/io.h +++ b/include/asm-i386/io.h @@ -166,11 +166,11 @@ extern void bt_iounmap(void *addr, unsigned long size); /* * However PCI ones are not necessarily 1:1 and therefore these interfaces * are forbidden in portable PCI drivers. + * + * Allow them on x86 for legacy drivers, though. */ -extern unsigned long virt_to_bus_not_defined_use_pci_map(volatile void *addr); -#define virt_to_bus virt_to_bus_not_defined_use_pci_map -extern unsigned long bus_to_virt_not_defined_use_pci_map(volatile void *addr); -#define bus_to_virt bus_to_virt_not_defined_use_pci_map +#define virt_to_bus virt_to_phys +#define bus_to_virt phys_to_virt /* * readX/writeX() are used to access memory mapped devices. On some