]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MTD] [MAPS] dilnetpc: Fix printk warning
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Wed, 7 Mar 2007 16:36:01 +0000 (16:36 +0000)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 8 Mar 2007 09:46:28 +0000 (09:46 +0000)
The type of a resource could be 32 or 64bit depending upon platform or
option so cast it explicitly.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/maps/dilnetpc.c

index b1104fe1f20723a4dfaca7400efc6d0e85bdab0b..1c3b34ad732511f56c5138a0ac92d9fad2b95263 100644 (file)
@@ -402,8 +402,8 @@ static int __init init_dnpc(void)
                        ++higlvl_partition_info[i].name;
        }
 
-       printk(KERN_NOTICE "DIL/Net %s flash: 0x%lx at 0x%lx\n",
-               is_dnp ? "DNPC" : "ADNP", dnpc_map.size, dnpc_map.phys);
+       printk(KERN_NOTICE "DIL/Net %s flash: 0x%lx at 0x%llx\n",
+               is_dnp ? "DNPC" : "ADNP", dnpc_map.size, (unsigned long long)dnpc_map.phys);
 
        dnpc_map.virt = ioremap_nocache(dnpc_map.phys, dnpc_map.size);