Skip to content

Commit

Permalink
mfd: syscon: Fix warnings when printing resource_size_t
Browse files Browse the repository at this point in the history
Gets rid of these warnings when compile module for 64 bit targets:
  CC      drivers/mfd/syscon.o
  drivers/mfd/syscon.c: In function 'syscon_probe':
  drivers/mfd/syscon.c:155:2: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'resource_size_t' [-Wformat]
  drivers/mfd/syscon.c:155:2: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' [-Wformat]

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Alexander Shiyan authored and Samuel Ortiz committed Apr 9, 2013
1 parent 066ec1d commit daba96d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/syscon.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ static int syscon_probe(struct platform_device *pdev)

platform_set_drvdata(pdev, syscon);

dev_info(dev, "regmap 0x%x-0x%x registered\n", res->start, res->end);
dev_info(dev, "regmap %pR registered\n", res);

return 0;
}
Expand Down

0 comments on commit daba96d

Please sign in to comment.