[PATCH v5 10/33] dm: Fix error handling for dev_read_addr_ptr

Bin Meng
2020-03-02T02:22:57Z

On Sat, Feb 29, 2020 at 5:06 AM Sean Anderson <seanga2@gmail.com> wrote:
>
> dev_read_addr_ptr had different semantics depending on whether OF_LIVE was
> enabled. This patch converts both implementations to return NULL on error,
> and converts all call sites which check for FDT_ADDR_T_NONE to check for
> NULL instead. This patch also removes the call to map_physmem, since we
> have dev_remap_addr* for those semantics.
>
> Signed-off-by: Sean Anderson <seanga2@gmail.com>
> ---
>
> Changes in v5:
> - New
>
> drivers/clk/imx/clk-imx8mp.c | 2 +-
> drivers/core/read.c | 2 +-
> drivers/pinctrl/broadcom/pinctrl-bcm283x.c | 2 +-
> drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 2 +-
> include/dm/read.h | 4 +++-
> 5 files changed, 7 insertions(+), 5 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>