Skip to content

Commit

Permalink
[SPARC]: Mark sparc and sparc64 as not having virt_to_bus
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stephen Rothwell authored and David S. Miller committed Jul 18, 2007
1 parent d762acd commit 0785b9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions arch/sparc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ config GENERIC_ISA_DMA
bool
default y

config ARCH_NO_VIRT_TO_BUS
def_bool y

source "init/Kconfig"

menu "General machine setup"
Expand Down
3 changes: 3 additions & 0 deletions arch/sparc64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ config AUDIT_ARCH
bool
default y

config ARCH_NO_VIRT_TO_BUS
def_bool y

choice
prompt "Kernel page size"
default SPARC64_PAGE_SIZE_8KB
Expand Down
5 changes: 0 additions & 5 deletions include/asm-sparc64/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
#define __SLOW_DOWN_IO do { } while (0)
#define SLOW_DOWN_IO do { } while (0)

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

/* BIO layer definitions. */
extern unsigned long kern_base, kern_size;
#define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
Expand Down

0 comments on commit 0785b9d

Please sign in to comment.