mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
net: dsa: Fix scope of eeprom-length property
eeprom-length is a switch property, not a dsa property, and thus
needs to be attached to the switch node, not to the dsa node.
Reported-by: Andrew Lunn <[email protected]>
Fixes: 6793abb4e8 ("net: dsa: Add support for switch EEPROM access")
Signed-off-by: Guenter Roeck <[email protected]>
Acked-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
d4c216c541
commit
50d4964f1d
1 changed files with 1 additions and 1 deletions
|
|
@ -633,7 +633,7 @@ static int dsa_of_probe(struct device *dev)
|
|||
if (cd->sw_addr > PHY_MAX_ADDR)
|
||||
continue;
|
||||
|
||||
if (!of_property_read_u32(np, "eeprom-length", &eeprom_len))
|
||||
if (!of_property_read_u32(child, "eeprom-length", &eeprom_len))
|
||||
cd->eeprom_len = eeprom_len;
|
||||
|
||||
for_each_available_child_of_node(child, port) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue