diff options
author | 2017-05-29 13:57:12 +0200 | |
---|---|---|
committer | 2017-05-30 13:57:28 -0400 | |
commit | 00bc2e49e7bfd499ee925f552155c328d765bf8a (patch) | |
tree | f1a1caf121fc4a16458f169c2ac3a377d1b8e5c2 /drivers/net/ethernet/qualcomm | |
parent | net: qca_7k: Use BIT macro (diff) | |
download | linux-00bc2e49e7bfd499ee925f552155c328d765bf8a.tar.gz linux-00bc2e49e7bfd499ee925f552155c328d765bf8a.tar.bz2 linux-00bc2e49e7bfd499ee925f552155c328d765bf8a.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/qualcomm')
-rw-r--r-- | drivers/net/ethernet/qualcomm/qca_spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |