aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/m68k/mac/oss.c8
-rw-r--r--arch/m68k/mac/via.c5
-rw-r--r--drivers/nubus/nubus.c13
3 files changed, 4 insertions, 22 deletions
diff --git a/arch/m68k/mac/oss.c b/arch/m68k/mac/oss.c
index 61906eb67d0f..21b85605db58 100644
--- a/arch/m68k/mac/oss.c
+++ b/arch/m68k/mac/oss.c
@@ -52,14 +52,6 @@ void __init oss_init(void)
52} 52}
53 53
54/* 54/*
55 * Initialize OSS for Nubus access
56 */
57
58void __init oss_nubus_init(void)
59{
60}
61
62/*
63 * Handle miscellaneous OSS interrupts. 55 * Handle miscellaneous OSS interrupts.
64 */ 56 */
65 57
diff --git a/arch/m68k/mac/via.c b/arch/m68k/mac/via.c
index 19ad46ba4787..c38fab213e9f 100644
--- a/arch/m68k/mac/via.c
+++ b/arch/m68k/mac/via.c
@@ -106,6 +106,7 @@ static int gIER,gIFR,gBufA,gBufB;
106static u8 nubus_disabled; 106static u8 nubus_disabled;
107 107
108void via_debug_dump(void); 108void via_debug_dump(void);
109static void via_nubus_init(void);
109 110
110/* 111/*
111 * Initialize the VIAs 112 * Initialize the VIAs
@@ -238,6 +239,8 @@ void __init via_init(void)
238 via2[vACR] &= ~0x03; /* disable port A & B latches */ 239 via2[vACR] &= ~0x03; /* disable port A & B latches */
239 } 240 }
240 241
242 via_nubus_init();
243
241 /* Everything below this point is VIA2 only... */ 244 /* Everything below this point is VIA2 only... */
242 245
243 if (rbv_present) 246 if (rbv_present)
@@ -359,7 +362,7 @@ int via_get_cache_disable(void)
359 * Initialize VIA2 for Nubus access 362 * Initialize VIA2 for Nubus access
360 */ 363 */
361 364
362void __init via_nubus_init(void) 365static void __init via_nubus_init(void)
363{ 366{
364 /* unlock nubus transactions */ 367 /* unlock nubus transactions */
365 368
diff --git a/drivers/nubus/nubus.c b/drivers/nubus/nubus.c
index df431e8a0631..4f50f30650cd 100644
--- a/drivers/nubus/nubus.c
+++ b/drivers/nubus/nubus.c
@@ -18,11 +18,6 @@
18#include <asm/setup.h> 18#include <asm/setup.h>
19#include <asm/page.h> 19#include <asm/page.h>
20#include <asm/hwtest.h> 20#include <asm/hwtest.h>
21#include <asm/mac_via.h>
22#include <asm/mac_oss.h>
23
24extern void via_nubus_init(void);
25extern void oss_nubus_init(void);
26 21
27/* Constants */ 22/* Constants */
28 23
@@ -840,14 +835,6 @@ static int __init nubus_init(void)
840 if (!MACH_IS_MAC) 835 if (!MACH_IS_MAC)
841 return 0; 836 return 0;
842 837
843 /* Initialize the NuBus interrupts */
844 if (oss_present) {
845 oss_nubus_init();
846 } else {
847 via_nubus_init();
848 }
849
850 /* And probe */
851 pr_info("NuBus: Scanning NuBus slots.\n"); 838 pr_info("NuBus: Scanning NuBus slots.\n");
852 nubus_devices = NULL; 839 nubus_devices = NULL;
853 nubus_boards = NULL; 840 nubus_boards = NULL;