Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Alexander Shiyan and committed by
Samuel Ortiz
daba96d6 066ec1dd

+1 -1
+1 -1
drivers/mfd/syscon.c
··· 152 152 153 153 platform_set_drvdata(pdev, syscon); 154 154 155 - dev_info(dev, "regmap 0x%x-0x%x registered\n", res->start, res->end); 155 + dev_info(dev, "regmap %pR registered\n", res); 156 156 157 157 return 0; 158 158 }