mfd: syscon: Fix warnings when printing resource_size_t
authorAlexander Shiyan <shc_work@mail.ru>
Tue, 9 Apr 2013 17:50:02 +0000 (21:50 +0400)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 9 Apr 2013 20:50:44 +0000 (22:50 +0200)
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>
drivers/mfd/syscon.c

index 7905d36d051797250bb58b7768791a4d92b67c15..962a6e17a01a1f75a3e783a94f4eb0d126273b60 100644 (file)
@@ -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;
 }