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>
|
||
|---|---|---|
| .. | ||
| esw_rt3050.c | ||
| esw_rt3050.h | ||
| ethtool.c | ||
| ethtool.h | ||
| gsw_mt7620.c | ||
| gsw_mt7620.h | ||
| Kconfig | ||
| Makefile | ||
| mdio_mt7620.c | ||
| mdio_rt2880.c | ||
| mdio_rt2880.h | ||
| mdio.c | ||
| mdio.h | ||
| mt7530.c | ||
| mt7530.h | ||
| mtk_eth_soc.c | ||
| mtk_eth_soc.h | ||
| soc_mt7620.c | ||
| soc_rt2880.c | ||
| soc_rt3050.c | ||
| soc_rt3883.c | ||