diff options
Diffstat (limited to 'examples/standalone')
-rw-r--r-- | examples/standalone/atmel_df_pow2.c | 3 | ||||
-rw-r--r-- | examples/standalone/hello_world.c | 2 | ||||
-rw-r--r-- | examples/standalone/smc91111_eeprom.c | 9 | ||||
-rw-r--r-- | examples/standalone/smc911x_eeprom.c | 3 | ||||
-rw-r--r-- | examples/standalone/stubs.c | 2 |
5 files changed, 12 insertions, 7 deletions
diff --git a/examples/standalone/atmel_df_pow2.c b/examples/standalone/atmel_df_pow2.c index b7bd243730..9c74f4994b 100644 --- a/examples/standalone/atmel_df_pow2.c +++ b/examples/standalone/atmel_df_pow2.c @@ -9,6 +9,7 @@ #include <common.h> #include <exports.h> #include <spi.h> +#include <linux/delay.h> #define CMD_ID 0x9f #define CMD_STAT 0xd7 @@ -115,7 +116,7 @@ static char *getline(void) } } -int atmel_df_pow2(int argc, char * const argv[]) +int atmel_df_pow2(int argc, char *const argv[]) { /* Print the ABI version */ app_startup(argv); diff --git a/examples/standalone/hello_world.c b/examples/standalone/hello_world.c index 1f61bb4777..263cd9ca07 100644 --- a/examples/standalone/hello_world.c +++ b/examples/standalone/hello_world.c @@ -7,7 +7,7 @@ #include <common.h> #include <exports.h> -int hello_world (int argc, char * const argv[]) +int hello_world(int argc, char *const argv[]) { int i; diff --git a/examples/standalone/smc91111_eeprom.c b/examples/standalone/smc91111_eeprom.c index 5ffefc8f36..bf7e930643 100644 --- a/examples/standalone/smc91111_eeprom.c +++ b/examples/standalone/smc91111_eeprom.c @@ -12,6 +12,7 @@ #include <common.h> #include <exports.h> +#include <linux/delay.h> #include "../drivers/net/smc91111.h" #ifndef SMC91111_EEPROM_INIT @@ -31,7 +32,7 @@ void print_MAC (struct eth_device *dev); int read_eeprom_reg (struct eth_device *dev, int reg); void print_macaddr (struct eth_device *dev); -int smc91111_eeprom (int argc, char * const argv[]) +int smc91111_eeprom(int argc, char *const argv[]) { int c, i, j, done, line, reg, value, start, what; char input[50]; @@ -237,7 +238,7 @@ void copy_from_eeprom (struct eth_device *dev) CTL_RELOAD, CTL_REG); i = 100; while ((SMC_inw (dev, CTL_REG) & CTL_RELOAD) && --i) - udelay (100); + udelay(100); if (i == 0) { printf ("Timeout Refreshing EEPROM registers\n"); } else { @@ -318,7 +319,7 @@ int read_eeprom_reg (struct eth_device *dev, int reg) CTL_RELOAD, CTL_REG); timeout = 100; while ((SMC_inw (dev, CTL_REG) & CTL_RELOAD) && --timeout) - udelay (100); + udelay(100); if (timeout == 0) { printf ("Timeout Reading EEPROM register %02x\n", reg); return 0; @@ -341,7 +342,7 @@ int write_eeprom_reg (struct eth_device *dev, int value, int reg) CTL_STORE, CTL_REG); timeout = 100; while ((SMC_inw (dev, CTL_REG) & CTL_STORE) && --timeout) - udelay (100); + udelay(100); if (timeout == 0) { printf ("Timeout Writing EEPROM register %02x\n", reg); return 0; diff --git a/examples/standalone/smc911x_eeprom.c b/examples/standalone/smc911x_eeprom.c index 270588bcf5..9bd9a6efa3 100644 --- a/examples/standalone/smc911x_eeprom.c +++ b/examples/standalone/smc911x_eeprom.c @@ -17,6 +17,7 @@ #include <common.h> #include <console.h> #include <exports.h> +#include <net.h> #include <linux/ctype.h> #include <linux/types.h> #include "../drivers/net/smc911x.h" @@ -465,7 +466,7 @@ static char *getline(void) /** * smc911x_eeprom - our application's main() function */ -int smc911x_eeprom(int argc, char * const argv[]) +int smc911x_eeprom(int argc, char *const argv[]) { /* Avoid initializing on stack as gcc likes to call memset() */ struct eth_device dev; diff --git a/examples/standalone/stubs.c b/examples/standalone/stubs.c index 0827bde35e..5fb460454f 100644 --- a/examples/standalone/stubs.c +++ b/examples/standalone/stubs.c @@ -2,6 +2,8 @@ #include <exports.h> #include <linux/compiler.h> +struct cmd_tbl; + #define FO(x) offsetof(struct jt_funcs, x) #if defined(CONFIG_X86) |