From: Stefan Wahren Date: Mon, 29 May 2017 11:57:12 +0000 (+0200) Subject: net: qca_spi: Use SET_NETDEV_DEV() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=00bc2e49e7bfd499ee925f552155c328d765bf8a;p=openwrt%2Fstaging%2Fblogic.git net: qca_spi: Use SET_NETDEV_DEV() Use SET_NETDEV_DEV() in qca_spi to create the "/sys/class/net//device" symlink. Signed-off-by: Stefan Wahren Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/qualcomm/qca_spi.c b/drivers/net/ethernet/qualcomm/qca_spi.c index 24ca7df15d07..0c3fdeee27ea 100644 --- a/drivers/net/ethernet/qualcomm/qca_spi.c +++ b/drivers/net/ethernet/qualcomm/qca_spi.c @@ -894,6 +894,7 @@ qca_spi_probe(struct spi_device *spi) return -ENOMEM; qcaspi_netdev_setup(qcaspi_devs); + SET_NETDEV_DEV(qcaspi_devs, &spi->dev); qca = netdev_priv(qcaspi_devs); if (!qca) {