Skip to content

Commit

Permalink
powerpc/85xx: sbc8560 - correct compilation if CONFIG_PHYS_ADDR_T_64B…
Browse files Browse the repository at this point in the history
…IT is set

If CONFIG_PHYS_ADDR_T_64BIT is set, compilation of sbc8560 fails with
the following error:

arch/powerpc/platforms/85xx/sbc8560.c: In function ‘sbc8560_bdrstcr_init’:
arch/powerpc/platforms/85xx/sbc8560.c:286: error: format ‘%x’ expects type ‘unsigned int’, but argument 2 has type ‘resource_size_t’

Fix that by using %pR format instead of just printing the start of
resource.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Dmitry Eremin-Solenikov authored and Kumar Gala committed Oct 7, 2011
1 parent 7680057 commit c72fa7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/85xx/sbc8560.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ static int __init sbc8560_bdrstcr_init(void)

of_address_to_resource(np, 0, &res);

printk(KERN_INFO "sbc8560: Found BRSTCR at i/o 0x%x\n", res.start);
printk(KERN_INFO "sbc8560: Found BRSTCR at %pR\n", &res);

brstcr = ioremap(res.start, resource_size(&res));
if(!brstcr)
Expand Down

0 comments on commit c72fa7d

Please sign in to comment.