summaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/microchip/ksz9477.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-20 09:41:30 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-20 09:41:30 +0200
commiteed3c957dd8cb794d6010137266cd91e0502c86d (patch)
treef2e8a6272193c9f773d8327cf7f24e799dae8f32 /drivers/net/dsa/microchip/ksz9477.c
parentusb: misc: sisusbvga: Move static const tables out to different include file (diff)
parentLinux 5.8-rc6 (diff)
downloadlinux-eed3c957dd8cb794d6010137266cd91e0502c86d.tar.xz
linux-eed3c957dd8cb794d6010137266cd91e0502c86d.zip
Merge 5.8-rc6 into usb-next
We need the USB fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz9477.c')
-rw-r--r--drivers/net/dsa/microchip/ksz9477.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/dsa/microchip/ksz9477.c b/drivers/net/dsa/microchip/ksz9477.c
index 9a51b8a4de5d..8d15c3016024 100644
--- a/drivers/net/dsa/microchip/ksz9477.c
+++ b/drivers/net/dsa/microchip/ksz9477.c
@@ -1588,6 +1588,9 @@ static int ksz9477_switch_init(struct ksz_device *dev)
return -ENOMEM;
}
+ /* set the real number of ports */
+ dev->ds->num_ports = dev->port_cnt;
+
return 0;
}