powerpc/mpc5200: fix compile warnings in bestcomm driver
authorGrant Likely <grant.likely@secretlab.ca>
Fri, 11 Jul 2008 22:17:58 +0000 (16:17 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 12 Jul 2008 18:10:53 +0000 (12:10 -0600)
Fix for the following compiler warnings:

  CC      arch/powerpc/sysdev/bestcomm/bestcomm.o
  arch/powerpc/sysdev/bestcomm/bestcomm.c: In function 'mpc52xx_bcom_probe':
  arch/powerpc/sysdev/bestcomm/bestcomm.c:446:
      warning: format '%08lx' expects type 'long unsigned int',
      but argument 2 has type 'phys_addr_t'
  CC      arch/powerpc/sysdev/bestcomm/sram.o
  arch/powerpc/sysdev/bestcomm/sram.c: In function 'bcom_sram_init':
  arch/powerpc/sysdev/bestcomm/sram.c:89:
      warning: format '%08lx' expects type 'long unsigned int',
      but argument 3 has type 'phys_addr_t'

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
arch/powerpc/sysdev/bestcomm/bestcomm.c
arch/powerpc/sysdev/bestcomm/sram.c

index 64ec7d6293633822f8c8afd000068d73a4160442..446c9ea85b3018b10a07fb55a9d1d86bff55c2db 100644 (file)
@@ -443,7 +443,7 @@ mpc52xx_bcom_probe(struct of_device *op, const struct of_device_id *match)
 
        /* Done ! */
        printk(KERN_INFO "DMA: MPC52xx BestComm engine @%08lx ok !\n",
-               bcom_eng->regs_base);
+               (long)bcom_eng->regs_base);
 
        return 0;
 
index 99784383a84335fcd0ffd065dc271bc66bc80bbb..5d74ef7a651f6e6f4fb38837fe914bcbe4c0297c 100644 (file)
@@ -86,7 +86,7 @@ int bcom_sram_init(struct device_node *sram_node, char *owner)
        if (!bcom_sram->base_virt) {
                printk(KERN_ERR "%s: bcom_sram_init: "
                        "Map error SRAM zone 0x%08lx (0x%0x)!\n",
-                       owner, bcom_sram->base_phys, bcom_sram->size );
+                       owner, (long)bcom_sram->base_phys, bcom_sram->size );
                rv = -ENOMEM;
                goto error_release;
        }