[PATCH 3/3] net: tsec: Make redundant_init() static

Ramon Fried rfried.dev at gmail.com
Sat Oct 16 20:27:50 CEST 2021


On Wed, Sep 29, 2021 at 8:50 AM Bin Meng <bmeng.cn at gmail.com> wrote:
>
> redundant_init() is only called in the tsec driver. Make it static.
>
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
>  drivers/net/tsec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c
> index ee820aae15..b433e411bd 100644
> --- a/drivers/net/tsec.c
> +++ b/drivers/net/tsec.c
> @@ -432,7 +432,7 @@ static void tsec_halt(struct udevice *dev)
>   * of the eTSEC port initialization sequence,
>   * the eTSEC Rx logic may not be properly initialized.
>   */
> -void redundant_init(struct tsec_private *priv)
> +static void redundant_init(struct tsec_private *priv)
>  {
>         struct tsec __iomem *regs = priv->regs;
>         uint t, count = 0;
> --
> 2.25.1
>
Reviewed-by: Ramon Fried <rfried.dev at gmail.com>


More information about the U-Boot mailing list