Skip to content

Commit

Permalink
powerpc/85xx: Fix compile warnings in mpc85xx_mds.c
Browse files Browse the repository at this point in the history
arch/powerpc/platforms/85xx/mpc85xx_mds.c: In function 'board_fixups':
arch/powerpc/platforms/85xx/mpc85xx_mds.c:244: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'resource_size_t'
arch/powerpc/platforms/85xx/mpc85xx_mds.c:250: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'resource_size_t'

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Kumar Gala committed Dec 3, 2008
1 parent d5b26db commit 24a9959
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/powerpc/platforms/85xx/mpc85xx_mds.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,15 @@ static int __init board_fixups(void)
mdio = of_find_compatible_node(NULL, NULL, compstrs[i]);

of_address_to_resource(mdio, 0, &res);
snprintf(phy_id, BUS_ID_SIZE, "%x:%02x", res.start, 1);
snprintf(phy_id, BUS_ID_SIZE, "%llx:%02x",
(unsigned long long)res.start, 1);

phy_register_fixup_for_id(phy_id, mpc8568_fixup_125_clock);
phy_register_fixup_for_id(phy_id, mpc8568_mds_phy_fixups);

/* Register a workaround for errata */
snprintf(phy_id, BUS_ID_SIZE, "%x:%02x", res.start, 7);
snprintf(phy_id, BUS_ID_SIZE, "%llx:%02x",
(unsigned long long)res.start, 7);
phy_register_fixup_for_id(phy_id, mpc8568_mds_phy_fixups);

of_node_put(mdio);
Expand Down

0 comments on commit 24a9959

Please sign in to comment.