From 291c53917de29a805c7ff285407213b9f1408305 Mon Sep 17 00:00:00 2001 From: Daniel Hellstrom Date: Mon, 13 Apr 2015 13:12:33 +0200 Subject: DRVMGR: remove struct driver registration func --- c/src/lib/libbsp/sparc/leon2/startup/bsppredriver.c | 4 ++-- c/src/lib/libbsp/sparc/leon3/amba/amba.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'c/src/lib/libbsp/sparc') diff --git a/c/src/lib/libbsp/sparc/leon2/startup/bsppredriver.c b/c/src/lib/libbsp/sparc/leon2/startup/bsppredriver.c index 2e41b72ec4..ad3694dfbd 100644 --- a/c/src/lib/libbsp/sparc/leon2/startup/bsppredriver.c +++ b/c/src/lib/libbsp/sparc/leon2/startup/bsppredriver.c @@ -31,9 +31,9 @@ * the devmgr_confdefs.h. No specifc drivers needed by BSP since IRQ/TIMER/UART * is not drvmgr drivers. */ -struct drvmgr_drv_reg_func drvmgr_drivers[] __attribute__((weak)) = +drvmgr_drv_reg_func drvmgr_drivers[] __attribute__((weak)) = { - {NULL} /* End array with NULL */ + NULL /* End array with NULL */ }; /* Defines what cores are avilable on the bus in addition to the standard diff --git a/c/src/lib/libbsp/sparc/leon3/amba/amba.c b/c/src/lib/libbsp/sparc/leon3/amba/amba.c index 87dcf22f00..60a236ce04 100644 --- a/c/src/lib/libbsp/sparc/leon3/amba/amba.c +++ b/c/src/lib/libbsp/sparc/leon3/amba/amba.c @@ -38,11 +38,11 @@ extern void apbuart_cons_register_drv(void); /* All drivers included by BSP, this is overridden by the user by including * the drvmgr_confdefs.h. By default the Timer and UART driver are included. */ -struct drvmgr_drv_reg_func drvmgr_drivers[] __attribute__((weak)) = +drvmgr_drv_reg_func drvmgr_drivers[] __attribute__((weak)) = { - {gptimer_register_drv}, - {apbuart_cons_register_drv}, - {NULL} /* End array with NULL */ + gptimer_register_drv, + apbuart_cons_register_drv, + NULL /* End array with NULL */ }; /* Driver resources configuration for AMBA root bus. It is declared weak -- cgit v1.2.3