lkml.org 
[lkml]   [2012]   [Feb]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 6/8] lantiq_etop: use dev_set_mac_address() instead of ltq_etop_set_mac_address()
    Date
    Use dev_set_mac_address() instead of ltq_etop_set_mac_address() directly
    to get validation checks for free.

    Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
    ---
    drivers/net/ethernet/lantiq_etop.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/net/ethernet/lantiq_etop.c b/drivers/net/ethernet/lantiq_etop.c
    index 5dc9cbd..2419f51 100644
    --- a/drivers/net/ethernet/lantiq_etop.c
    +++ b/drivers/net/ethernet/lantiq_etop.c
    @@ -650,11 +650,11 @@ ltq_etop_init(struct net_device *dev)
    random_mac = true;
    }

    - err = ltq_etop_set_mac_address(dev, &mac);
    + err = dev_set_mac_address(dev, &mac);
    if (err)
    goto err_netdev;

    - /* Set addr_assign_type here, ltq_etop_set_mac_address would reset it. */
    + /* Set addr_assign_type here, dev_set_mac_address would reset it. */
    if (random_mac)
    dev->addr_assign_type |= NET_ADDR_RANDOM;

    --
    1.7.8.3


    \
     
     \ /
      Last update: 2012-02-29 16:47    [W:0.020 / U:2.744 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site