mirror of https://gitee.com/openkylin/linux.git
net: qca_spi: Use SET_NETDEV_DEV()
Use SET_NETDEV_DEV() in qca_spi to create the "/sys/class/net/<if>/device" symlink. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
661ec067b0
commit
00bc2e49e7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue