dm9601.c (e9637775c05f2bbae24f060a91b7f8459bbe2286) dm9601.c (49ed8dde371522b2d330a7383aaa213748ad007e)
1/*
2 * Davicom DM96xx USB 10/100Mbps ethernet devices
3 *
4 * Peter Korsgaard <jacmet@sunsite.dk>
5 *
6 * This file is licensed under the terms of the GNU General Public License
7 * version 2. This program is licensed "as is" without any warranty of any
8 * kind, whether express or implied.

--- 317 unchanged lines hidden (view full) ---

326 struct usbnet *dev = netdev_priv(net);
327
328 if (!is_valid_ether_addr(addr->sa_data)) {
329 dev_err(&net->dev, "not setting invalid mac address %pM\n",
330 addr->sa_data);
331 return -EINVAL;
332 }
333
1/*
2 * Davicom DM96xx USB 10/100Mbps ethernet devices
3 *
4 * Peter Korsgaard <jacmet@sunsite.dk>
5 *
6 * This file is licensed under the terms of the GNU General Public License
7 * version 2. This program is licensed "as is" without any warranty of any
8 * kind, whether express or implied.

--- 317 unchanged lines hidden (view full) ---

326 struct usbnet *dev = netdev_priv(net);
327
328 if (!is_valid_ether_addr(addr->sa_data)) {
329 dev_err(&net->dev, "not setting invalid mac address %pM\n",
330 addr->sa_data);
331 return -EINVAL;
332 }
333
334 memcpy(net->dev_addr, addr->sa_data, net->addr_len);
334 eth_hw_addr_set(net, addr->sa_data);
335 __dm9601_set_mac_address(dev);
336
337 return 0;
338}
339
340static const struct net_device_ops dm9601_netdev_ops = {
341 .ndo_open = usbnet_open,
342 .ndo_stop = usbnet_stop,

--- 309 unchanged lines hidden ---
335 __dm9601_set_mac_address(dev);
336
337 return 0;
338}
339
340static const struct net_device_ops dm9601_netdev_ops = {
341 .ndo_open = usbnet_open,
342 .ndo_stop = usbnet_stop,

--- 309 unchanged lines hidden ---