mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Cc: Sergei Shtylyov <[email protected]> Acked-and-tested-by: Lad, Prabhakar <[email protected]> Signed-off-by: Grygorii Strashko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
ca8b6e04bc
commit
6d48f44b7b
3 changed files with 79 additions and 0 deletions
|
|
@ -308,3 +308,8 @@ SLAVE DMA ENGINE
|
|||
|
||||
SPI
|
||||
devm_spi_register_master()
|
||||
|
||||
MDIO
|
||||
devm_mdiobus_alloc()
|
||||
devm_mdiobus_alloc_size()
|
||||
devm_mdiobus_free()
|
||||
|
|
|
|||
Loading…
Reference in a new issue