diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-09-18 10:00:46 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-10-16 07:07:19 +0200 |
commit | f9c8e14dcb578c503c666ffdabe06d28b383700d (patch) | |
tree | 77aa2db2612a3ae85b09218a561f23db3e1d6a7f /bsps/sparc/leon3/console/console.c | |
parent | grlib: Remove unused conversion macros (diff) | |
download | rtems-f9c8e14dcb578c503c666ffdabe06d28b383700d.tar.bz2 |
grlib: Add ambapp_common_info to derived types
This avoids a cast in DEV_TO_COMMON().
Diffstat (limited to 'bsps/sparc/leon3/console/console.c')
-rw-r--r-- | bsps/sparc/leon3/console/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/sparc/leon3/console/console.c b/bsps/sparc/leon3/console/console.c index 3522dc7529..9fb1f54828 100644 --- a/bsps/sparc/leon3/console/console.c +++ b/bsps/sparc/leon3/console/console.c @@ -62,7 +62,7 @@ static int find_matching_apbuart(struct ambapp_dev *dev, int index, void *arg) /* Extract needed information of one APBUART */ apbuarts[uarts].regs = (struct apbuart_regs *)apb->start; - apbuarts[uarts].irq = apb->irq; + apbuarts[uarts].irq = apb->common.irq; /* Get APBUART core frequency, it is assumed that it is the same * as Bus frequency where the UART is situated */ |