summaryrefslogtreecommitdiffstats
path: root/c/src/lib
diff options
context:
space:
mode:
authorDaniel Cederman <cederman@gaisler.com>2014-03-13 14:35:43 +0100
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-03-21 09:57:27 -0500
commite4b5085344b8bcf7c53bb7b575535db92036d019 (patch)
tree5b86c8cf4c9e0d016c73181a71bd932ec08183ed /c/src/lib
parentbsps/sparc: Change asm to __asm__ to compile with -pedantic. (diff)
downloadrtems-e4b5085344b8bcf7c53bb7b575535db92036d019.tar.bz2
greth: Make local functions static, remove overflow and correct printf call.
Diffstat (limited to 'c/src/lib')
-rw-r--r--c/src/lib/libbsp/sparc/leon3/leon_greth/leon_greth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/leon_greth/leon_greth.c b/c/src/lib/libbsp/sparc/leon3/leon_greth/leon_greth.c
index ea36118cd6..77e4f497ae 100644
--- a/c/src/lib/libbsp/sparc/leon3/leon_greth/leon_greth.c
+++ b/c/src/lib/libbsp/sparc/leon3/leon_greth/leon_greth.c
@@ -47,7 +47,7 @@ int rtems_leon_greth_driver_attach(
*(volatile int *) base_addr = 0;
*(volatile int *) base_addr = GRETH_CTRL_RST;
*(volatile int *) base_addr = 0;
- leon_greth_configuration.base_address = base_addr;
+ leon_greth_configuration.base_address = (void*)base_addr;
leon_greth_configuration.vector = eth_irq; /* on LEON vector is IRQ no. */
leon_greth_configuration.txd_count = TDA_COUNT;
leon_greth_configuration.rxd_count = RDA_COUNT;