patch-2.3.16 linux/arch/ppc/kernel/pmac_setup.c
Next file: linux/arch/ppc/kernel/pmac_support.c
Previous file: linux/arch/ppc/kernel/pmac_pic.c
Back to the patch index
Back to the overall index
- Lines: 99
- Date:
Tue Aug 31 11:36:43 1999
- Orig file:
v2.3.15/linux/arch/ppc/kernel/pmac_setup.c
- Orig date:
Mon Jul 12 15:12:55 1999
diff -u --recursive --new-file v2.3.15/linux/arch/ppc/kernel/pmac_setup.c linux/arch/ppc/kernel/pmac_setup.c
@@ -43,6 +43,8 @@
#include <linux/console.h>
#include <linux/ide.h>
#include <linux/pci.h>
+
+#include <asm/init.h>
#include <asm/prom.h>
#include <asm/system.h>
#include <asm/pgtable.h>
@@ -227,8 +229,8 @@
static volatile u32 *sysctrl_regs;
-__initfunc(void
-pmac_setup_arch(unsigned long *memory_start_p, unsigned long *memory_end_p))
+void __init
+pmac_setup_arch(unsigned long *memory_start_p, unsigned long *memory_end_p)
{
struct device_node *cpu;
int *fp;
@@ -308,7 +310,7 @@
/*
* Tweak the PCI-PCI bridge chip on the blue & white G3s.
*/
-__initfunc(static void init_p2pbridge(void))
+static void __init init_p2pbridge(void)
{
struct device_node *p2pbridge;
unsigned char bus, devfn;
@@ -330,7 +332,7 @@
pcibios_read_config_word(bus, devfn, PCI_BRIDGE_CONTROL, &val);
}
-__initfunc(static void ohare_init(void))
+static void __init ohare_init(void)
{
/*
* Turn on the L2 cache.
@@ -355,8 +357,8 @@
int boot_part;
kdev_t boot_dev;
-__initfunc(void
-pmac_init2(void))
+void __init
+pmac_init2(void)
{
adb_init();
pmac_nvram_init();
@@ -364,8 +366,8 @@
}
#ifdef CONFIG_SCSI
-__initfunc(void
-note_scsi_host(struct device_node *node, void *host))
+void __init
+note_scsi_host(struct device_node *node, void *host)
{
int l;
char *p;
@@ -399,7 +401,7 @@
extern struct device_node *pmac_ide_node[];
static int ide_majors[] = { 3, 22, 33, 34, 56, 57, 88, 89 };
-__initfunc(kdev_t find_ide_boot(void))
+kdev_t __init find_ide_boot(void)
{
char *p;
int i, n;
@@ -426,7 +428,7 @@
}
#endif /* CONFIG_BLK_DEV_IDE_PMAC */
-__initfunc(void find_boot_device(void))
+void __init find_boot_device(void)
{
#ifdef CONFIG_SCSI
if (boot_host != NULL) {
@@ -440,7 +442,7 @@
#endif
}
-/* can't be initfunc - can be called whenever a disk is first accessed */
+/* can't be __init - can be called whenever a disk is first accessed */
__pmac
void note_bootable_part(kdev_t dev, int part)
{
@@ -589,9 +591,9 @@
#endif
#endif
-__initfunc(void
+void __init
pmac_init(unsigned long r3, unsigned long r4, unsigned long r5,
- unsigned long r6, unsigned long r7))
+ unsigned long r6, unsigned long r7)
{
pmac_setup_pci_ptrs();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)