mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-14 23:09:45 +01:00
ralink: rt3833: fix compilation warning from device_reset in fe_probe
Fix compilation warning from device_reset in fe_probe. On fail print a
warning but don't fail probe.
Fix compilation warning:
drivers/net/ethernet/ralink/mtk_eth_soc.c: In function 'fe_probe':
drivers/net/ethernet/ralink/mtk_eth_soc.c:1564:9: error: ignoring return value of 'device_reset' declared with attribute 'warn_unused_result' [-Werror=unused-result]
1564 | device_reset(&pdev->dev);
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
4ea21e3161
commit
82afdf6056
1 changed files with 3 additions and 1 deletions
|
|
@ -1561,7 +1561,9 @@ static int fe_probe(struct platform_device *pdev)
|
|||
struct clk *sysclk;
|
||||
int err, napi_weight;
|
||||
|
||||
device_reset(&pdev->dev);
|
||||
err = device_reset(&pdev->dev);
|
||||
if (err)
|
||||
dev_err(&pdev->dev, "failed to reset device\n");
|
||||
|
||||
match = of_match_device(of_fe_match, &pdev->dev);
|
||||
soc = (struct fe_soc_data *)match->data;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue