Skip to content

Commit 33220b3

Browse files
committed
Merge branch 'at91-4.19-trunk/base_net' into linux-4.19-at91
2 parents 67873e4 + a2e39c1 commit 33220b3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

drivers/net/phy/micrel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ static struct phy_driver ksphy_driver[] = {
984984
.phy_id = PHY_ID_KSZ9031,
985985
.phy_id_mask = MICREL_PHY_ID_MASK,
986986
.name = "Micrel KSZ9031 Gigabit PHY",
987-
.features = PHY_GBIT_FEATURES,
987+
.features = PHY_GBIT_FEATURES | SUPPORTED_Pause,
988988
.flags = PHY_HAS_INTERRUPT,
989989
.driver_data = &ksz9021_type,
990990
.probe = kszphy_probe,

drivers/net/wireless/ath/ath9k/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ static int ath9k_of_init(struct ath_softc *sc)
642642
}
643643

644644
mac = of_get_mac_address(np);
645-
if (mac)
645+
if (!IS_ERR(mac))
646646
ether_addr_copy(common->macaddr, mac);
647647

648648
return 0;

drivers/net/wireless/mediatek/mt76/eeprom.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ mt76_eeprom_override(struct mt76_dev *dev)
9494
return;
9595

9696
mac = of_get_mac_address(np);
97-
if (mac)
97+
if (!IS_ERR(mac))
9898
memcpy(dev->macaddr, mac, ETH_ALEN);
9999
#endif
100100

drivers/net/wireless/ralink/rt2x00/rt2x00dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ void rt2x00lib_set_mac_address(struct rt2x00_dev *rt2x00dev, u8 *eeprom_mac_addr
10071007
const char *mac_addr;
10081008

10091009
mac_addr = of_get_mac_address(rt2x00dev->dev->of_node);
1010-
if (mac_addr)
1010+
if (!IS_ERR(mac_addr))
10111011
ether_addr_copy(eeprom_mac_addr, mac_addr);
10121012

10131013
if (!is_valid_ether_addr(eeprom_mac_addr)) {

0 commit comments

Comments
 (0)