[U-Boot] [PATCH v3] [83xx] Adds two more ethernet interface to 83xx

Ben Warren biggerbadderben at gmail.com
Tue Oct 14 07:53:01 CEST 2008


richardretanubun wrote:
> Fixed compiler warning "declared but unused" eth5_uec_info and 
> eth6_uec_info.
> Signed-off-by: Richard Retanubun <RichardRetanubun at RugggedCom.com>
> ---
> Hi Ben,
>
> Thanks for applying the patch. I got a compiler warning when using it, 
> here is a patch to fix that.
>
> Thanks for all the help
>
> Richard
>
> drivers/qe/uec.c |    8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/qe/uec.c b/drivers/qe/uec.c
> index e1dec5e..582a1c0 100644
> --- a/drivers/qe/uec.c
> +++ b/drivers/qe/uec.c
> @@ -1414,6 +1414,14 @@ int uec_initialize(int index)
> #ifdef CONFIG_UEC_ETH4
>         uec_info = &eth4_uec_info;
> #endif
> +    } else if (index == 4) {
> +#ifdef CONFIG_UEC_ETH5
> +        uec_info = &eth5_uec_info;
> +#endif
> +    } else if (index == 5) {
> +#ifdef CONFIG_UEC_ETH6
> +        uec_info = &eth6_uec_info;
> +#endif
>     } else {
>         printf("%s: index is illegal.\n", __FUNCTION__);
>         return -EINVAL;
Applied to net/next

regards,
Ben


More information about the U-Boot mailing list