cleanup code to remove warnings
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1482 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
27916da0a9
commit
23e2e18960
|
@ -46,6 +46,10 @@ it with the version available from LANL.
|
||||||
#define CONFIG_MAX_PHYSICAL_CPUS CONFIG_MAX_CPUS
|
#define CONFIG_MAX_PHYSICAL_CPUS CONFIG_MAX_CPUS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if CONFIG_FS_STREAM == 1
|
||||||
|
extern int filo(struct lb_memory *);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* The processor map.
|
/* The processor map.
|
||||||
* Now that SMP is in linuxbios, and Linux counts on us
|
* Now that SMP is in linuxbios, and Linux counts on us
|
||||||
* giving accurate information about processors, we need a map
|
* giving accurate information about processors, we need a map
|
||||||
|
|
|
@ -48,7 +48,7 @@ unsigned char ttyS0_rx_byte(void)
|
||||||
return uart8250_rx_byte(TTYS0_BASE);
|
return uart8250_rx_byte(TTYS0_BASE);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ttyS0_tst_byte(unsigned char data)
|
int ttyS0_tst_byte(void)
|
||||||
{
|
{
|
||||||
return uart8250_can_rx_byte(TTYS0_BASE);
|
return uart8250_can_rx_byte(TTYS0_BASE);
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,6 +82,7 @@ extern void compute_allocate_resource(struct bus *bus, struct resource *bridge,
|
||||||
extern void assign_resources(struct bus *bus);
|
extern void assign_resources(struct bus *bus);
|
||||||
extern void enable_resources(struct device *dev);
|
extern void enable_resources(struct device *dev);
|
||||||
extern void enumerate_static_device(void);
|
extern void enumerate_static_device(void);
|
||||||
|
extern void enumerate_static_devices(void);
|
||||||
extern const char *dev_path(device_t dev);
|
extern const char *dev_path(device_t dev);
|
||||||
extern void compact_resources(device_t dev);
|
extern void compact_resources(device_t dev);
|
||||||
extern struct resource *get_resource(device_t dev, unsigned index);
|
extern struct resource *get_resource(device_t dev, unsigned index);
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
#include <ppc.h>
|
#include <ppc.h>
|
||||||
#include <arch/io.h>
|
#include <arch/io.h>
|
||||||
#include <printk.h>
|
#include <printk.h>
|
||||||
|
#include <uart8250.h>
|
||||||
|
|
||||||
void pnp_output(char address, char data)
|
void pnp_output(char address, char data)
|
||||||
{
|
{
|
||||||
|
@ -44,8 +45,6 @@ void pnp_output(char address, char data)
|
||||||
void
|
void
|
||||||
board_init(void)
|
board_init(void)
|
||||||
{
|
{
|
||||||
unsigned char reg8;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Configure FLASH
|
* Configure FLASH
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -135,7 +135,6 @@ void rtc_init(int invalid)
|
||||||
PC_CKS_RANGE_END,PC_CKS_LOC);
|
PC_CKS_RANGE_END,PC_CKS_LOC);
|
||||||
|
|
||||||
if (invalid || cmos_invalid || checksum_invalid) {
|
if (invalid || cmos_invalid || checksum_invalid) {
|
||||||
int i;
|
|
||||||
printk_warning("RTC:%s%s%s zeroing cmos\n",
|
printk_warning("RTC:%s%s%s zeroing cmos\n",
|
||||||
invalid?" Clear requested":"",
|
invalid?" Clear requested":"",
|
||||||
cmos_invalid?" Power Problem":"",
|
cmos_invalid?" Power Problem":"",
|
||||||
|
|
|
@ -44,8 +44,6 @@ void initialise_dma(void);
|
||||||
static void
|
static void
|
||||||
w83c553_init(struct device *dev)
|
w83c553_init(struct device *dev)
|
||||||
{
|
{
|
||||||
unsigned char reg8;
|
|
||||||
|
|
||||||
printk_info("Configure W83C553F ISA Bridge (Function 0)\n");
|
printk_info("Configure W83C553F ISA Bridge (Function 0)\n");
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|
|
@ -16,7 +16,6 @@ void sio_enable(struct chip *chip, enum chip_pass pass)
|
||||||
{
|
{
|
||||||
|
|
||||||
unsigned char reg;
|
unsigned char reg;
|
||||||
struct superio_NSC_pc97307_config *conf = (struct superio_NSC_pc97307_config *)chip->chip_info;
|
|
||||||
|
|
||||||
switch (pass) {
|
switch (pass) {
|
||||||
case CONF_PASS_PRE_PCI:
|
case CONF_PASS_PRE_PCI:
|
||||||
|
|
Loading…
Reference in New Issue