diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2014-04-30 14:23:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-02 22:16:26 +0200 |
commit | 6d48f44b7b2af67b33c1ae5994b8f642685c8bc8 (patch) | |
tree | 3c39a984abea3ca8016660b111783874d982f5b4 /Documentation/driver-model | |
parent | net: via-rhine: Drop revision property, use quirks instead (diff) | |
download | linux-6d48f44b7b2af67b33c1ae5994b8f642685c8bc8.tar.xz linux-6d48f44b7b2af67b33c1ae5994b8f642685c8bc8.zip |
mdio_bus: implement devm_mdiobus_alloc/devm_mdiobus_free
Add a resource managed devm_mdiobus_alloc[_size]()/devm_mdiobus_free()
to automatically clean up MDIO bus alocations made by MDIO drivers,
thus leading to simplified MDIO drivers code.
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-and-tested-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/driver-model')
-rw-r--r-- | Documentation/driver-model/devres.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt index 4f7897e99cba..c74e04494ade 100644 --- a/Documentation/driver-model/devres.txt +++ b/Documentation/driver-model/devres.txt @@ -308,3 +308,8 @@ SLAVE DMA ENGINE SPI devm_spi_register_master() + +MDIO + devm_mdiobus_alloc() + devm_mdiobus_alloc_size() + devm_mdiobus_free() |