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:

committed by
David S. Miller

parent
661ec067b0
commit
00bc2e49e7
@@ -894,6 +894,7 @@ qca_spi_probe(struct spi_device *spi)
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
qcaspi_netdev_setup(qcaspi_devs);
|
qcaspi_netdev_setup(qcaspi_devs);
|
||||||
|
SET_NETDEV_DEV(qcaspi_devs, &spi->dev);
|
||||||
|
|
||||||
qca = netdev_priv(qcaspi_devs);
|
qca = netdev_priv(qcaspi_devs);
|
||||||
if (!qca) {
|
if (!qca) {
|
||||||
|
Reference in New Issue
Block a user