OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
661ec06
)
net: qca_spi: Use SET_NETDEV_DEV()
author
Stefan Wahren
<stefan.wahren@i2se.com>
Mon, 29 May 2017 11:57:12 +0000
(13:57 +0200)
committer
David S. Miller
<davem@davemloft.net>
Tue, 30 May 2017 17:57:28 +0000
(13:57 -0400)
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>
drivers/net/ethernet/qualcomm/qca_spi.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/qualcomm/qca_spi.c
b/drivers/net/ethernet/qualcomm/qca_spi.c
index
24ca7df
..
0c3fdee
100644
(file)
--- 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) {