Skip to content

Commit 321eb29

Browse files
Mihai Saincristibirsan
authored andcommitted
driver: ddramc: fix the warning with unused variable cr
Fix the warning with unused variable ‘cr’ during compilation with different bus speed. Fixes: a715b09 ("driver: add MT41K128M16 ddr support for sam9x7") Signed-off-by: Mihai Sain <[email protected]> Reviewed-by: Claudiu Beznea <[email protected]>
1 parent f8e1849 commit 321eb29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

driver/ddramc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,9 @@ int ddr3_sdram_initialize(unsigned int base_address,
14691469
struct ddramc_register *ddramc_config)
14701470
{
14711471
unsigned int ba_offset;
1472+
#if defined(CONFIG_BUS_SPEED_266MHZ)
14721473
unsigned int cr;
1474+
#endif
14731475

14741476
if (backup_resume()) {
14751477
ddr3_lpddr2_sdram_bkp_init(base_address, ram_address,

0 commit comments

Comments
 (0)