Skip to content

Commit

Permalink
[MTD] [MAPS] dilnetpc: Fix printk warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Cox authored and David Woodhouse committed Mar 8, 2007
1 parent 83d4809 commit 99109a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mtd/maps/dilnetpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 99109a6

Please sign in to comment.