summaryrefslogtreecommitdiff
path: root/net/core
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2020-10-04 19:12:53 +0300
committerDavid S. Miller <davem@davemloft.net>2020-10-05 00:38:53 +0300
commit3122433eb533aac7d08302ee4b3bd3adfcd280d3 (patch)
tree8b0383b91acaf5e8aaea267249855b3f94ca2997 /net/core
parentf15ec13a9630f0c2297ff94f9fd588d2525fc020 (diff)
downloadlinux-3122433eb533aac7d08302ee4b3bd3adfcd280d3.tar.xz
net: dsa: Register devlink ports before calling DSA driver setup()
DSA drivers want to create regions on devlink ports as well as the devlink device instance, in order to export registers and other tables per port. To keep all this code together in the drivers, have the devlink ports registered early, so the setup() method can setup both device and port devlink regions. v3: Remove dp->setup Move common code out of switch statement. Fix wrong goto Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Vladimir Oltean <olteanv@gmail.com> Tested-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions