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

Simon Glass sjg at chromium.org
Mon Mar 2 20:46:57 CET 2020


On Fri, 28 Feb 2020 at 14:06, Sean Anderson <seanga2 at 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 at 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: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list