Commit c72fa7df3758c047660e27c34dfd2f9a14181c53

Authored by Dmitry Eremin-Solenikov
Committed by Kumar Gala
1 parent 7680057cc4

powerpc/85xx: sbc8560 - correct compilation if CONFIG_PHYS_ADDR_T_64BIT 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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

arch/powerpc/platforms/85xx/sbc8560.c
... ... @@ -283,7 +283,7 @@
283 283  
284 284 of_address_to_resource(np, 0, &res);
285 285  
286   - printk(KERN_INFO "sbc8560: Found BRSTCR at i/o 0x%x\n", res.start);
  286 + printk(KERN_INFO "sbc8560: Found BRSTCR at %pR\n", &res);
287 287  
288 288 brstcr = ioremap(res.start, resource_size(&res));
289 289 if(!brstcr)