Arnd Bergmann 08279468a2 rtc: sunplus: fix format string for printing resource
On 32-bit architectures with 64-bit resource_size_t, sp_rtc_probe()
causes a compiler warning:

drivers/rtc/rtc-sunplus.c: In function 'sp_rtc_probe':
drivers/rtc/rtc-sunplus.c:243:33: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'resource_size_t' {aka 'long long unsigned int'} [-Werror=format=]
  243 |         dev_dbg(&plat_dev->dev, "res = 0x%x, reg_base = 0x%lx\n",
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The best way to print a resource is the special %pR format string,
and similarly to print a pointer we can use %p and avoid the cast.

Fixes: fad6cbe9b2b4 ("rtc: Add driver for RTC in Sunplus SP7021")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20230117172450.2938962-1-arnd@kernel.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2023-01-23 23:33:47 +01:00
..
2022-06-24 21:24:02 +02:00
2022-12-21 09:19:24 -08:00
2021-08-10 23:21:46 +02:00
2022-12-21 09:19:24 -08:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2021-12-02 23:23:38 +01:00
2021-09-25 23:22:28 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2021-04-29 23:03:26 +02:00
2021-05-25 00:41:25 +02:00
2022-06-24 21:24:02 +02:00
2021-10-01 23:28:28 +02:00
2021-01-16 23:19:26 +01:00
2022-11-16 23:20:30 +01:00
2022-06-24 21:24:02 +02:00
2022-06-24 21:24:02 +02:00
2022-04-19 16:27:05 +02:00
2022-12-11 23:06:43 +01:00
2022-06-24 21:24:02 +02:00
2021-09-25 23:26:37 +02:00
2022-06-24 21:24:02 +02:00
2022-08-09 00:56:41 +02:00
2020-12-03 23:43:23 +01:00