diff mbox series

[v8,08/24] rockchip: timer: dw-apb-timer: use regs variable with uintptr_t size

Message ID 58d69600-be2d-489f-c3bc-3110e8ca900c@gmail.com
State Accepted
Commit e9eddb75c5bf867ac2c773138afb64b92b6100e8
Delegated to: Kever Yang
Headers show
Series Fixes for Rockchip NFC driver part 1 | expand

Commit Message

Johan Jonker March 13, 2023, 12:29 a.m. UTC
The fdt_addr_t and phys_addr_t size have been decoupled.
A 32bit CPU can expect 64-bit data from the device tree parser,
so use a regs variable with uintptr_t size in the
dw-apb-timer.c file.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---

Changed V8:
  use uintptr_t instead of phys_addr_t

Changed V6:
  remove cast
  change title
---
 drivers/timer/dw-apb-timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.20.1

Comments

Simon Glass March 13, 2023, 3:10 a.m. UTC | #1
On Sun, 12 Mar 2023 at 18:29, Johan Jonker <jbx6244@gmail.com> wrote:
>
> The fdt_addr_t and phys_addr_t size have been decoupled.
> A 32bit CPU can expect 64-bit data from the device tree parser,
> so use a regs variable with uintptr_t size in the
> dw-apb-timer.c file.
>
> Signed-off-by: Johan Jonker <jbx6244@gmail.com>
> ---
>
> Changed V8:
>   use uintptr_t instead of phys_addr_t
>
> Changed V6:
>   remove cast
>   change title
> ---
>  drivers/timer/dw-apb-timer.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox series

Patch

diff --git a/drivers/timer/dw-apb-timer.c b/drivers/timer/dw-apb-timer.c
index 10f0a9f6..b171232c 100644
--- a/drivers/timer/dw-apb-timer.c
+++ b/drivers/timer/dw-apb-timer.c
@@ -23,7 +23,7 @@ 
 #define DW_APB_CTRL		0x8

 struct dw_apb_timer_priv {
-	fdt_addr_t regs;
+	uintptr_t regs;
 	struct reset_ctl_bulk resets;
 };