OSDN Git Service

dsa: Make use of the list of tag drivers
authorAndrew Lunn <andrew@lunn.ch>
Sun, 28 Apr 2019 17:37:20 +0000 (19:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Apr 2019 23:41:01 +0000 (19:41 -0400)
commit3675617531443a503f674e71e70248b9c5a205cd
treec58c401dc42ec49b59a5321a76509eba5831a2ca
parent4dad81ee14479c74973ee669612a367b3a675743
dsa: Make use of the list of tag drivers

Implement the _get and _put functions to make use of the list of tag
drivers. Also, trigger the loading of the module, based on the alias
information. The _get function takes a reference on the tag driver, so
it cannot be unloaded, and the _put function releases the reference.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
v2:
Make tag_driver_register void

Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c