fbdev: mmp: print IRQ resource using %pR format string
authorArnd Bergmann <arnd@arndb.de>
Mon, 25 Jan 2016 15:03:01 +0000 (16:03 +0100)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 29 Jan 2016 11:42:58 +0000 (13:42 +0200)
commitc3a2da26e6216033456c1d5375cd1d2629d1fd09
treec98d10406a24d91b12b4b49be379153488ffff40
parentef88ee4e2c98c11dab56b2845ade9270acb8e68b
fbdev: mmp: print IRQ resource using %pR format string

resource_size_t cannot be printed using the %x format string
when we it is defined as u64:

drivers/video/fbdev/mmp/hw/mmp_ctrl.c: In function 'mmphw_probe':
drivers/video/fbdev/mmp/hw/mmp_ctrl.c:506:22: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t {aka long long unsigned int}' [-Werror=format=]
   dev_err(ctrl->dev, "%s: res %x - %x map failed\n", __func__,
                      ^
drivers/video/fbdev/mmp/hw/mmp_ctrl.c:506:22: error: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'resource_size_t {aka long long unsigned int}' [-Werror=format=]

This changes the format string to %pR, which is interpreted
by the printk implementation to pretty-print a resource
structure.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/mmp/hw/mmp_ctrl.c