lkml.org 
[lkml]   [2017]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v8 net-next 04/17] net: qca_spi: Use SET_NETDEV_DEV()
    Date
    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>
    ---
    drivers/net/ethernet/qualcomm/qca_spi.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/net/ethernet/qualcomm/qca_spi.c b/drivers/net/ethernet/qualcomm/qca_spi.c
    index 24ca7df..0c3fdee 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) {
    --
    2.1.4
    \
     
     \ /
      Last update: 2017-05-29 13:59    [W:2.760 / U:0.952 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site