mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
Fix breakage in SMC EEPROM standalone applications
Commit 6a45e38495
(Make getenv_IPaddr() global)
inadvertently added ' #include "net.h" ' to the standalone programs, creating
duplicate definitions of 'struct eth_device'. This patch removes the local
definitions and removes other code that breaks due to the change in definition.
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
2a9987935e
commit
b40e2320c4
2 changed files with 0 additions and 10 deletions
|
@ -29,8 +29,6 @@
|
|||
|
||||
#include <common.h>
|
||||
#include <exports.h>
|
||||
/* the smc91111.h gets base addr through eth_device' iobase */
|
||||
struct eth_device { unsigned long iobase; };
|
||||
#include "../drivers/net/smc91111.h"
|
||||
|
||||
#ifndef SMC91111_EEPROM_INIT
|
||||
|
|
|
@ -16,13 +16,6 @@
|
|||
|
||||
#include <common.h>
|
||||
#include <exports.h>
|
||||
|
||||
/* the smc911x.h gets base addr through eth_device' iobase */
|
||||
struct eth_device {
|
||||
const char *name;
|
||||
unsigned long iobase;
|
||||
void *priv;
|
||||
};
|
||||
#include "../drivers/net/smc911x.h"
|
||||
|
||||
/**
|
||||
|
@ -324,7 +317,6 @@ int smc911x_eeprom(int argc, char *argv[])
|
|||
{
|
||||
/* Avoid initializing on stack as gcc likes to call memset() */
|
||||
struct eth_device dev;
|
||||
dev.name = __func__;
|
||||
dev.iobase = CONFIG_SMC911X_BASE;
|
||||
|
||||
/* Print the ABI version */
|
||||
|
|
Loading…
Reference in a new issue