sparc: drop ifdef CONFIG_SBUS in arch/sparc - SBUS is always defined
PATCH 1/4 sparc: drop ifdef CONFIG_SBUS in arch/sparc - SBUS is always defined
Noticed by: Kristoffer Glembo <[email protected]>
Cc Kristoffer Glembo <[email protected]>
Signed-off-by Sam Ravnborg <[email protected]>
--- arch/sparc/kernel/ioport.c | 4 ---- arch/sparc/kernel/prom_irqtrans.c | 5 ----- arch/sparc/mm/io-unit.c | 4 ---- arch/sparc/mm/iommu.c | 4 ---- 4 files changed, 0 insertions(+), 17 deletions(-)
arch/sparc/kernel/ioport.c +0 -4
@@ -237,8 +237,6 @@ static void _sparc_free_io(struct resource *res)release_resource (res); } -#ifdef CONFIG_SBUS -void sbus_set_sbus64 (struct device *dev,int x) {printk ("sbus_set_sbus64: unsupported\n" );
@@ -420,8 +418,6 @@ static int __init sparc_register_ioport(void)arch_initcall (sparc_register_ioport); -#endif /* CONFIG_SBUS */ -#ifdef CONFIG_PCI /* Allocate and map kernel buffer using consistent mode DMA for a device.
arch/sparc/kernel/prom_irqtrans.c +0 -5
@@ -556,7 +556,6 @@ static void __init fire_irq_trans_init(struct device_node *dp) }#endif /* CONFIG_PCI */ -#ifdef CONFIG_SBUS /* INO number to IMAP register offset for SYSIO external IRQ's. * This should conform to both Sunfire/Wildfire server and Fusion * desktop designs.
@@ -711,8 +710,6 @@ static void __init sbus_irq_trans_init(struct device_node *dp) regs =of_get_property (dp,"reg" ,NULL ); dp->irq_trans->data = (void *) (unsigned long ) regs->phys_addr; } -#endif /* CONFIG_SBUS */ - static unsigned int central_build_irq(struct device_node *dp, unsigned int ino,
@@ -822,13 +819,11 @@ void __init irq_trans_init(struct device_node *dp) } }#endif -#ifdef CONFIG_SBUS if (!strcmp (dp->name,"sbus" ) || !strcmp (dp->name,"sbi" )) {sbus_irq_trans_init (dp);return ; } -#endif if (!strcmp (dp->name,"fhc" ) && !strcmp (dp->parent->name,"central" )) {central_irq_trans_init (dp);
arch/sparc/mm/io-unit.c +0 -4
@@ -196,7 +196,6 @@ static void iounit_release_scsi_sgl(struct device *dev, struct scatterlist *sg,spin_unlock_irqrestore (&iounit->lock, flags); } -#ifdef CONFIG_SBUS static int iounit_map_dma_area (struct device *dev,dma_addr_t *pba,unsigned long va,__u32 addr,int len) {struct iounit_struct *iounit = dev->archdata.iommu;
@@ -240,7 +239,6 @@ static void iounit_unmap_dma_area(struct device *dev, unsigned long addr, int le {/* XXX Somebody please fill this in */ } -#endif static char *iounit_lockarea (char *vaddr,unsigned long len) {
@@ -263,8 +261,6 @@ void __init ld_mmu_iounit(void)BTFIXUPSET_CALL (mmu_release_scsi_one, iounit_release_scsi_one,BTFIXUPCALL_NORM );BTFIXUPSET_CALL (mmu_release_scsi_sgl, iounit_release_scsi_sgl,BTFIXUPCALL_NORM ); -#ifdef CONFIG_SBUS BTFIXUPSET_CALL (mmu_map_dma_area, iounit_map_dma_area,BTFIXUPCALL_NORM );BTFIXUPSET_CALL (mmu_unmap_dma_area, iounit_unmap_dma_area,BTFIXUPCALL_NORM ); -#endif }
arch/sparc/mm/iommu.c +0 -4
@@ -336,7 +336,6 @@ static void iommu_release_scsi_sgl(struct device *dev, struct scatterlist *sg, i } } -#ifdef CONFIG_SBUS static int iommu_map_dma_area (struct device *dev,dma_addr_t *pba,unsigned long va,unsigned long addr,int len) {
@@ -424,7 +423,6 @@ static void iommu_unmap_dma_area(struct device *dev, unsigned long busa, int leniommu_invalidate (iommu->regs);bit_map_clear (&iommu->usemap, ioptex, len >>PAGE_SHIFT ); } -#endif static char *iommu_lockarea (char *vaddr,unsigned long len) {
@@ -456,10 +454,8 @@ void __init ld_mmu_iommu(void)BTFIXUPSET_CALL (mmu_release_scsi_one, iommu_release_scsi_one,BTFIXUPCALL_NORM );BTFIXUPSET_CALL (mmu_release_scsi_sgl, iommu_release_scsi_sgl,BTFIXUPCALL_NORM ); -#ifdef CONFIG_SBUS BTFIXUPSET_CALL (mmu_map_dma_area, iommu_map_dma_area,BTFIXUPCALL_NORM );BTFIXUPSET_CALL (mmu_unmap_dma_area, iommu_unmap_dma_area,BTFIXUPCALL_NORM ); -#endif if (viking_mxcc_present || srmmu_modtype = HyperSparc) { dvma_prot =__pgprot (SRMMU_CACHE |SRMMU_ET_PTE |SRMMU_PRIV );
Signature · 1 line
1.6.0.6