Remove unused variables from 6300ESB smbus_write_block().
#ifdef DEADCODE out smbus_write_byte() and smbus_write_block() as they are static and nothing uses them or are incompletely implemented. Signed-off-by: Jonathan Kollasch <jakllsch@kollasch.net> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5972 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
9fe5069584
commit
7b8700b502
|
@ -22,6 +22,7 @@ static int smbus_read_byte(unsigned device, unsigned address)
|
||||||
return do_smbus_read_byte(SMBUS_IO_BASE, device, address);
|
return do_smbus_read_byte(SMBUS_IO_BASE, device, address);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef DEADCODE
|
||||||
static void smbus_write_byte(unsigned device, unsigned address, unsigned char val)
|
static void smbus_write_byte(unsigned device, unsigned address, unsigned char val)
|
||||||
{
|
{
|
||||||
if (smbus_wait_until_ready(SMBUS_IO_BASE) < 0) {
|
if (smbus_wait_until_ready(SMBUS_IO_BASE) < 0) {
|
||||||
|
@ -33,8 +34,6 @@ static void smbus_write_byte(unsigned device, unsigned address, unsigned char va
|
||||||
static int smbus_write_block(unsigned device, unsigned length, unsigned cmd,
|
static int smbus_write_block(unsigned device, unsigned length, unsigned cmd,
|
||||||
unsigned data1, unsigned data2)
|
unsigned data1, unsigned data2)
|
||||||
{
|
{
|
||||||
unsigned char global_control_register;
|
|
||||||
unsigned char global_status_register;
|
|
||||||
unsigned char byte;
|
unsigned char byte;
|
||||||
unsigned char stat;
|
unsigned char stat;
|
||||||
int i;
|
int i;
|
||||||
|
@ -95,4 +94,5 @@ static int smbus_write_block(unsigned device, unsigned length, unsigned cmd,
|
||||||
print_debug("SMBUS Block complete\n");
|
print_debug("SMBUS Block complete\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue