diff options
author | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2011-04-25 01:39:43 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-05-12 23:17:52 +0200 |
commit | cd8c87756a46ae3544e563793ce8c18efd1091d1 (patch) | |
tree | 4e553a071dbc031feb6c9fd481c8565dd26a408a /board/siemens/IAD210 | |
parent | 2cc195e0a5690bf022631ae420767e5b91c37476 (diff) | |
download | u-boot-imx-cd8c87756a46ae3544e563793ce8c18efd1091d1.zip u-boot-imx-cd8c87756a46ae3544e563793ce8c18efd1091d1.tar.gz u-boot-imx-cd8c87756a46ae3544e563793ce8c18efd1091d1.tar.bz2 |
Fix a few gcc warnings.
Noticed while building all of mpc8xx. Also
constify usage string in timer.c
Warnings fixed are:
timer.c: In function 'timer':
timer.c:189: warning: format not a string literal and no format arguments
timer.c:258: warning: format not a string literal and no format arguments
atm.c: In function 'atmUnload':
atm.c:99: warning: array subscript is above array bounds
atm.c: In function 'atmLoad':
atm.c:65: warning: array subscript is above array bounds
codec.c: In function 'codsp_write_pop_int':
codec.c:678: warning: array subscript is above array bounds
codec.c: In function 'codsp_write_cop_short':
codec.c:585: warning: array subscript is above array bounds
codec.c: In function 'codsp_write_sop_int':
codec.c:512: warning: array subscript is above array bounds
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Diffstat (limited to 'board/siemens/IAD210')
-rw-r--r-- | board/siemens/IAD210/atm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/siemens/IAD210/atm.c b/board/siemens/IAD210/atm.c index e599c10..40aad0a 100644 --- a/board/siemens/IAD210/atm.c +++ b/board/siemens/IAD210/atm.c @@ -62,7 +62,7 @@ int atmLoad() volatile iop8xx_t *iop = &immap->im_ioport; timers->cpmt_tgcr &= 0x0FFF; SYNC; /* Disable Timer 4 */ - immap->im_cpm.cp_scc[4].scc_gsmrl = 0x0; SYNC; /* Disable SCC4 */ + immap->im_cpm.cp_scc[3].scc_gsmrl = 0x0; SYNC; /* Disable SCC4 */ iop->iop_pdpar &= 0x3FFF; SYNC; /* Disable SAR and UTOPIA */ if ( atmMemInit() != OK ) return ERROR; @@ -96,7 +96,7 @@ void atmUnload() volatile iop8xx_t *iop = &immap->im_ioport; timers->cpmt_tgcr &= 0x0FFF; SYNC; /* Disable Timer 4 */ - immap->im_cpm.cp_scc[4].scc_gsmrl = 0x0; SYNC; /* Disable SCC4 */ + immap->im_cpm.cp_scc[3].scc_gsmrl = 0x0; SYNC; /* Disable SCC4 */ iop->iop_pdpar &= 0x3FFF; SYNC; /* Disable SAR and UTOPIA */ g_atm.loaded = FALSE; } |