提交 daba96d6 编写于 作者: A Alexander Shiyan 提交者: Samuel Ortiz

mfd: syscon: Fix warnings when printing resource_size_t

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: NAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 066ec1dd
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册