]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2373dfec4d05e07ba46f9a72858b22d6c248c26b
treec58c401dc42ec49b59a5321a76509eba5831a2ca
parentb327d204764d72f5da57913d65deedf5f509c0a2
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