[PATCH net-next] net: stmmac: platform: use optional clk/reset get APIs

Jakub Kicinski kuba at kernel.org
Mon Nov 9 14:57:13 EST 2020


On Mon, 9 Nov 2020 16:09:10 +0800 Jisheng Zhang wrote:
> @@ -596,14 +595,10 @@ stmmac_probe_config_dt(struct platform_device *pdev, const char **mac)
>  		dev_dbg(&pdev->dev, "PTP rate %d\n", plat->clk_ptp_rate);
>  	}
>  
> -	plat->stmmac_rst = devm_reset_control_get(&pdev->dev,
> -						  STMMAC_RESOURCE_NAME);
> +	plat->stmmac_rst = devm_reset_control_get_optional(&pdev->dev, STMMAC_RESOURCE_NAME);

This code was wrapped at 80 chars, please keep it wrapped.




More information about the linux-arm-kernel mailing list