diff options
author | Jesper Nilsson <jespern@axis.com> | 2015-06-03 07:04:23 -0400 |
---|---|---|
committer | Jesper Nilsson <jespern@axis.com> | 2015-09-04 18:33:25 -0400 |
commit | 4b86715748da506b176b5ec50c041b335c9d1769 (patch) | |
tree | 6164c203c18cfec15556f784ab4d9a8ff7fd3620 /arch/cris | |
parent | 939b83fb03f275016cd72a0f81f49bf8e63c2a14 (diff) |
CRISv32: Squash compile warnings for axisflashmap
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris')
-rw-r--r-- | arch/cris/arch-v32/drivers/axisflashmap.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/cris/arch-v32/drivers/axisflashmap.c b/arch/cris/arch-v32/drivers/axisflashmap.c index 28dd77144e8f..5387424683cc 100644 --- a/arch/cris/arch-v32/drivers/axisflashmap.c +++ b/arch/cris/arch-v32/drivers/axisflashmap.c | |||
@@ -313,6 +313,7 @@ static int __init init_axis_flash(void) | |||
313 | size_t len; | 313 | size_t len; |
314 | int ram_rootfs_partition = -1; /* -1 => no RAM rootfs partition */ | 314 | int ram_rootfs_partition = -1; /* -1 => no RAM rootfs partition */ |
315 | int part; | 315 | int part; |
316 | struct mtd_partition *partition; | ||
316 | 317 | ||
317 | /* We need a root fs. If it resides in RAM, we need to use an | 318 | /* We need a root fs. If it resides in RAM, we need to use an |
318 | * MTDRAM device, so it must be enabled in the kernel config, | 319 | * MTDRAM device, so it must be enabled in the kernel config, |
@@ -329,7 +330,7 @@ static int __init init_axis_flash(void) | |||
329 | 330 | ||
330 | main_mtd = flash_probe(); | 331 | main_mtd = flash_probe(); |
331 | if (main_mtd) | 332 | if (main_mtd) |
332 | printk(KERN_INFO "%s: 0x%08x bytes of NOR flash memory.\n", | 333 | printk(KERN_INFO "%s: 0x%08llx bytes of NOR flash memory.\n", |
333 | main_mtd->name, main_mtd->size); | 334 | main_mtd->name, main_mtd->size); |
334 | 335 | ||
335 | #ifdef CONFIG_ETRAX_NANDFLASH | 336 | #ifdef CONFIG_ETRAX_NANDFLASH |
@@ -388,10 +389,10 @@ static int __init init_axis_flash(void) | |||
388 | #endif | 389 | #endif |
389 | 390 | ||
390 | if (main_mtd) { | 391 | if (main_mtd) { |
392 | loff_t ptable_sector = CONFIG_ETRAX_PTABLE_SECTOR; | ||
391 | main_mtd->owner = THIS_MODULE; | 393 | main_mtd->owner = THIS_MODULE; |
392 | axisflash_mtd = main_mtd; | 394 | axisflash_mtd = main_mtd; |
393 | 395 | ||
394 | loff_t ptable_sector = CONFIG_ETRAX_PTABLE_SECTOR; | ||
395 | 396 | ||
396 | /* First partition (rescue) is always set to the default. */ | 397 | /* First partition (rescue) is always set to the default. */ |
397 | pidx++; | 398 | pidx++; |
@@ -517,7 +518,7 @@ static int __init init_axis_flash(void) | |||
517 | /* Decide whether to use default partition table. */ | 518 | /* Decide whether to use default partition table. */ |
518 | /* Only use default table if we actually have a device (main_mtd) */ | 519 | /* Only use default table if we actually have a device (main_mtd) */ |
519 | 520 | ||
520 | struct mtd_partition *partition = &axis_partitions[0]; | 521 | partition = &axis_partitions[0]; |
521 | if (main_mtd && !ptable_ok) { | 522 | if (main_mtd && !ptable_ok) { |
522 | memcpy(axis_partitions, axis_default_partitions, | 523 | memcpy(axis_partitions, axis_default_partitions, |
523 | sizeof(axis_default_partitions)); | 524 | sizeof(axis_default_partitions)); |
@@ -580,7 +581,7 @@ static int __init init_axis_flash(void) | |||
580 | printk(KERN_INFO "axisflashmap: Adding RAM partition " | 581 | printk(KERN_INFO "axisflashmap: Adding RAM partition " |
581 | "for rootfs image.\n"); | 582 | "for rootfs image.\n"); |
582 | err = mtdram_init_device(mtd_ram, | 583 | err = mtdram_init_device(mtd_ram, |
583 | (void *)partition[part].offset, | 584 | (void *)(u_int32_t)partition[part].offset, |
584 | partition[part].size, | 585 | partition[part].size, |
585 | partition[part].name); | 586 | partition[part].name); |
586 | if (err) | 587 | if (err) |