diff options
| author | Peng Fan <[email protected]> | 2026-05-25 11:51:48 +0800 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2026-06-09 11:51:19 +0200 |
| commit | b9b27c875f664a42967941bc33dbbaa441f12250 (patch) | |
| tree | 73b45081d47d8fb0ef911ac81fc270fd4669e81d /contrib/examples/httpd/https_example | |
| parent | 3c3ba75c852e68d5f9a9b388935254a2b3e13bd3 (diff) | |
watchdog: rti: Use dev_read_addr_ptr()
devfdt_get_addr() returns FDT_ADDR_T_NONE(-1UL) when fail, using
"!priv->regs" to check return value is wrong.
Replace devfdt_read_addr() with dev_read_addr_ptr() when retrieving the
register base address.
dev_read_addr_ptr() supports both live device tree and flat DT backends,
avoiding direct dependency on devfdt_* helpers.
Also use "void __iomem *" to replace "phys_addr_t" to avoid type
casting.
No functional changes.
Signed-off-by: Peng Fan <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'contrib/examples/httpd/https_example')
0 files changed, 0 insertions, 0 deletions
