Changeset 62fb1778 in rtems


Ignore:
Timestamp:
Feb 11, 2015, 11:55:32 AM (5 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
dbfa7c98
Parents:
43613a90
git-author:
Daniel Hellstrom <daniel@…> (02/11/15 11:55:32)
git-committer:
Daniel Hellstrom <daniel@…> (04/16/15 23:10:25)
Message:

LEON2: fix build warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/drvmgr/leon2_amba_bus.c

    r43613a90 r62fb1778  
    7878};
    7979
    80 /* Interrupt handlers */
    81 struct leon2_isr_handler leon2_isrs[16];
    82 
    8380/* Standard LEON2 configuration */
    8481
     
    134131static struct drvmgr_bus_res *leon2_bus_res = NULL;
    135132
    136 int leon2_root_register(struct leon2_bus *bus_config, struct drvmgr_bus_res *resources)
     133int leon2_root_register(
     134        struct leon2_bus *bus_config,
     135        struct drvmgr_bus_res *resources)
    137136{
    138137        /* Save the configuration for later */
     
    146145}
    147146
    148 int leon2_amba_dev_register(struct drvmgr_bus *bus, struct leon2_core *core, int index)
     147static int leon2_amba_dev_register(
     148        struct drvmgr_bus *bus,
     149        struct leon2_core *core,
     150        int index)
    149151{
    150152        struct drvmgr_dev *newdev;
     
    210212}
    211213
    212 int leon2_amba_init1(struct drvmgr_dev *dev)
     214static int leon2_amba_init1(struct drvmgr_dev *dev)
    213215{
    214216        /* Init our own device */
    215217        dev->priv = NULL;
    216218        dev->name = "LEON2 AMBA";
    217 
    218         memset(leon2_isrs, 0, sizeof(leon2_isrs));
    219219
    220220        /* Init the bus */
     
    235235}
    236236
    237 int leon2_amba_init2(struct drvmgr_dev *dev)
    238 {
    239         return DRVMGR_OK;
    240 }
    241 
    242 int leon2_amba_remove(struct drvmgr_dev *dev)
     237static int leon2_amba_init2(struct drvmgr_dev *dev)
     238{
     239        return DRVMGR_OK;
     240}
     241
     242static int leon2_amba_remove(struct drvmgr_dev *dev)
    243243{
    244244        return DRVMGR_OK;
     
    313313}
    314314
    315 rtems_isr leon2_amba_isr(rtems_vector_number v)
    316 {
    317         int irq = v - 0x10; /* Convert Vector number to Interrupt number */
    318         struct leon2_isr_handler *isr;
    319        
    320         isr = &leon2_isrs[irq];
    321         if ( isr->handler ) {
    322                 isr->handler(irq, isr->arg);
    323         }
    324 }
    325 
    326 int leon2_amba_get_irq(struct drvmgr_dev *dev, int index)
     315static int leon2_amba_get_irq(struct drvmgr_dev *dev, int index)
    327316{
    328317        int irq;
Note: See TracChangeset for help on using the changeset viewer.