Skip to content

Commit

Permalink
[POWERPC] Squash build warning for print of resource_size_t in fsl_soc.c
Browse files Browse the repository at this point in the history
When resource_size_t is larger than an int, the current code
generates a build warning.  Kill it.

Signed-off-by: Becky Bruce <becky.bruce@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Becky Bruce authored and Kumar Gala committed May 2, 2008
1 parent 9941d94 commit 128cf7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/sysdev/fsl_soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ static int __init gfar_of_init(void)
}

gfar_data.phy_id = *id;
snprintf(gfar_data.bus_id, MII_BUS_ID_SIZE, "%x",
res.start);
snprintf(gfar_data.bus_id, MII_BUS_ID_SIZE, "%llx",
(unsigned long long)res.start);

of_node_put(phy);
of_node_put(mdio);
Expand Down

0 comments on commit 128cf7f

Please sign in to comment.