diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2015-04-13 13:12:33 +0200 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2015-04-17 01:10:30 +0200 |
commit | 291c53917de29a805c7ff285407213b9f1408305 (patch) | |
tree | e1c5ba08ed9a8ad613721516f4b2d4fb7df8b818 /c/src/lib | |
parent | DRVMGR: clean-up DRV_OPS_NUM (diff) | |
download | rtems-291c53917de29a805c7ff285407213b9f1408305.tar.bz2 |
DRVMGR: remove struct driver registration func
Diffstat (limited to 'c/src/lib')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon2/startup/bsppredriver.c | 4 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/amba/amba.c | 8 |
2 files changed, 6 insertions, 6 deletions
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 |