Ühel kenal päeval, E, 28.04.2014 kell 20:18, kirjutas Ian Campbell:
> Also propagate errors.
> 
> Requested by Marek as part of upstream review.
> 
> Signed-off-by: Ian Campbell <[email protected]>
> ---
>  arch/arm/cpu/armv7/sunxi/board.c | 15 +++++++++++++--
>  drivers/net/sunxi_gmac.c         |  6 ++----
>  2 files changed, 15 insertions(+), 6 deletions(-)
> 
> diff --git a/arch/arm/cpu/armv7/sunxi/board.c 
> b/arch/arm/cpu/armv7/sunxi/board.c
> index 34d7872..662ad4c 100644
> --- a/arch/arm/cpu/armv7/sunxi/board.c
> +++ b/arch/arm/cpu/armv7/sunxi/board.c
> @@ -137,11 +137,22 @@ void enable_caches(void)
>   */
>  int cpu_eth_init(bd_t *bis)
>  {
> +     int rc;
> +
>  #ifdef CONFIG_SUNXI_EMAC
> -     sunxi_emac_initialize(bis);
> +     rc = sunxi_emac_initialize(bis);
> +     if (rc < 0) {
> +             printf("sunxi: failed to initiliaze emac\n");
Typo


-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to