]> err.no Git - linux-2.6/commitdiff
[POWERPC] Xilinx: Fix compile warnings
authorKumar Gala <galak@kernel.crashing.org>
Wed, 30 Apr 2008 15:24:44 +0000 (10:24 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 2 May 2008 04:09:42 +0000 (23:09 -0500)
arch/powerpc/sysdev/xilinx_intc.c: In function 'xilinx_intc_init':
arch/powerpc/sysdev/xilinx_intc.c:111: warning: format '%08X' expects type 'unsigned int', but argument 2 has type 'resource_size_t'
drivers/char/xilinx_hwicap/xilinx_hwicap.c: In function 'hwicap_setup':
drivers/char/xilinx_hwicap/xilinx_hwicap.c:626: warning: cast to pointer from integer of different size
drivers/char/xilinx_hwicap/xilinx_hwicap.c:646: warning: format '%x' expects type 'unsigned int', but argument 6 has type 'resource_size_t'

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/xilinx_intc.c
drivers/char/xilinx_hwicap/xilinx_hwicap.c

index ba8eea2bcce0460f833adf4a968be19a209c75d7..b7aefd0d45cb20204d7e95b81240564e0cc1ba69 100644 (file)
@@ -107,7 +107,7 @@ xilinx_intc_init(struct device_node *np)
        }
        regs = ioremap(res.start, 32);
 
-       printk(KERN_INFO "Xilinx intc at 0x%08X mapped to 0x%p\n",
+       printk(KERN_INFO "Xilinx intc at 0x%08LX mapped to 0x%p\n",
                res.start, regs);
 
        /* Setup interrupt controller */
index dfe6907ae15be44641591f4c28fea94d1a4e66f6..3edf1fc1296312e09670427b6500a442d50a7c5f 100644 (file)
@@ -623,8 +623,8 @@ static int __devinit hwicap_setup(struct device *dev, int id,
 
        if (!request_mem_region(drvdata->mem_start,
                                        drvdata->mem_size, DRIVER_NAME)) {
-               dev_err(dev, "Couldn't lock memory region at %p\n",
-                       (void *)regs_res->start);
+               dev_err(dev, "Couldn't lock memory region at %Lx\n",
+                       regs_res->start);
                retval = -EBUSY;
                goto failed1;
        }
@@ -643,7 +643,7 @@ static int __devinit hwicap_setup(struct device *dev, int id,
        mutex_init(&drvdata->sem);
        drvdata->is_open = 0;
 
-       dev_info(dev, "ioremap %lx to %p with size %x\n",
+       dev_info(dev, "ioremap %lx to %p with size %Lx\n",
                 (unsigned long int)drvdata->mem_start,
                        drvdata->base_address, drvdata->mem_size);