From 52f851dd1da8cefb3fb6e4795dc419d76d2b50b1 Mon Sep 17 00:00:00 2001 From: Li-Ta Lo Date: Fri, 30 Apr 2004 23:11:23 +0000 Subject: put extern keyword in front of declaration, make the compiler do it job git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1545 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/mainboard/tyan/s2885/Config.lb | 2 +- src/mainboard/tyan/s2885/mainboard.c | 20 +++++++++----------- 2 files changed, 10 insertions(+), 12 deletions(-) (limited to 'src/mainboard/tyan/s2885') diff --git a/src/mainboard/tyan/s2885/Config.lb b/src/mainboard/tyan/s2885/Config.lb index 33fffe6b48..649259f1f2 100644 --- a/src/mainboard/tyan/s2885/Config.lb +++ b/src/mainboard/tyan/s2885/Config.lb @@ -39,7 +39,7 @@ driver mainboard.o #dir /drivers/si/3114 #dir /drivers/intel/82551 driver ti_firewire.o -#object reset.o + if HAVE_MP_TABLE object mptable.o end if HAVE_PIRQ_TABLE object irq_tables.o end # diff --git a/src/mainboard/tyan/s2885/mainboard.c b/src/mainboard/tyan/s2885/mainboard.c index b3e7c83cc9..559f5b450e 100644 --- a/src/mainboard/tyan/s2885/mainboard.c +++ b/src/mainboard/tyan/s2885/mainboard.c @@ -6,11 +6,12 @@ #include #include "../../../northbridge/amd/amdk8/northbridge.h" #include "chip.h" -//#include + unsigned long initial_apicid[CONFIG_MAX_CPUS] = { 0,1 }; + #if 0 static void fixup_lsi_53c1030(struct device *pdev) { @@ -36,7 +37,7 @@ static void fixup_lsi_53c1030(struct device *pdev) } #endif -//extern static void lsi_scsi_init(struct device *dev); + #if 0 static void print_pci_regs(struct device *dev) { @@ -165,12 +166,7 @@ enable(struct chip *chip, enum chip_pass pass) } } -void final_mainboard_fixup(void) -{ -#if 0 - enable_ide_devices(); -#endif -} + static struct device_operations mainboard_operations = { .read_resources = root_dev_read_resources, .set_resources = root_dev_set_resources, @@ -183,15 +179,17 @@ static struct device_operations mainboard_operations = { static void enumerate(struct chip *chip) { struct chip *child; + + /* update device operation for dynamic root */ dev_root.ops = &mainboard_operations; chip->dev = &dev_root; chip->bus = 0; - for(child = chip->children; child; child = child->next) { - child->bus = &dev_root.link[0]; + for (child = chip->children; child; child = child->next) { + child->bus = &dev_root.link[0]; } } struct chip_control mainboard_tyan_s2885_control = { - .enable = enable, + .enable = enable, .enumerate = enumerate, .name = "Tyan s2885 mainboard ", }; -- cgit v1.2.3