From: <tristram...@microchip.com>
Date: Tue, 30 Oct 2018 16:45:49 -0700

> @@ -1206,6 +1201,12 @@ int ksz_switch_register(struct ksz_device *dev)
>       if (dev->pdata)
>               dev->chip_id = dev->pdata->chip_id;
>  
> +     /* mutex is used in next function call. */
> +     mutex_init(&dev->reg_mutex);
> +     mutex_init(&dev->stats_mutex);
> +     mutex_init(&dev->alu_mutex);
> +     mutex_init(&dev->vlan_mutex);
> +

Please remove this comment, as per Andrew Lunn's feedback.

Reply via email to