[SPARC64]: Fix sparc64 build errors when CONFIG_PCI=n.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Randy Dunlap and committed by David S. Miller 7233589d e340221a

+20 -1
+2
arch/sparc64/kernel/prom.c
··· 1032 static void irq_trans_init(struct device_node *dp) 1033 { 1034 const char *model; 1035 int i; 1036 1037 model = of_get_property(dp, "model", NULL); 1038 if (!model)
··· 1032 static void irq_trans_init(struct device_node *dp) 1033 { 1034 const char *model; 1035 + #ifdef CONFIG_PCI 1036 int i; 1037 + #endif 1038 1039 model = of_get_property(dp, "model", NULL); 1040 if (!model)
+4 -1
arch/sparc64/kernel/time.c
··· 788 if (!regs) 789 return -ENOMEM; 790 791 if (!strcmp(model, "ds1287") || 792 !strcmp(model, "m5819") || 793 !strcmp(model, "m5819p") || 794 !strcmp(model, "m5823")) { 795 ds1287_regs = (unsigned long) regs; 796 - } else if (model[5] == '0' && model[6] == '2') { 797 mstk48t02_regs = regs; 798 } else if(model[5] == '0' && model[6] == '8') { 799 mstk48t08_regs = regs;
··· 788 if (!regs) 789 return -ENOMEM; 790 791 + #ifdef CONFIG_PCI 792 if (!strcmp(model, "ds1287") || 793 !strcmp(model, "m5819") || 794 !strcmp(model, "m5819p") || 795 !strcmp(model, "m5823")) { 796 ds1287_regs = (unsigned long) regs; 797 + } else 798 + #endif 799 + if (model[5] == '0' && model[6] == '2') { 800 mstk48t02_regs = regs; 801 } else if(model[5] == '0' && model[6] == '8') { 802 mstk48t08_regs = regs;
+14
include/asm-sparc64/dma-mapping.h
··· 160 BUG(); 161 } 162 163 #endif /* PCI */ 164 165
··· 160 BUG(); 161 } 162 163 + static inline void 164 + dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, 165 + enum dma_data_direction direction) 166 + { 167 + BUG(); 168 + } 169 + 170 + static inline void 171 + dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, size_t size, 172 + enum dma_data_direction direction) 173 + { 174 + BUG(); 175 + } 176 + 177 #endif /* PCI */ 178 179