summaryrefslogtreecommitdiff
path: root/drivers/net/phy/mdio_devres.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2020-06-29 14:03:42 +0200
committerDavid S. Miller <davem@davemloft.net>2020-06-30 15:57:34 -0700
commit6a9a5723cb2ef3cdf3604e9f0c63c8e68cbb08d5 (patch)
treebdf1fdabb3fd12811ce0b2b5cef731d99c28997e /drivers/net/phy/mdio_devres.c
parent8b11c20a658de159fcf18ebce4f2acfdf747ff25 (diff)
phy: mdio: add kerneldoc for __devm_mdiobus_register()
This function is not documented. Add a short kerneldoc description. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/mdio_devres.c')
-rw-r--r--drivers/net/phy/mdio_devres.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/phy/mdio_devres.c b/drivers/net/phy/mdio_devres.c
index f0b4b6cfe5e3..3ee887733d4a 100644
--- a/drivers/net/phy/mdio_devres.c
+++ b/drivers/net/phy/mdio_devres.c
@@ -2,6 +2,13 @@
#include <linux/phy.h>
+/**
+ * __devm_mdiobus_register - Resource-managed variant of mdiobus_register()
+ * @bus: MII bus structure to register
+ * @owner: Owning module
+ *
+ * Returns 0 on success, negative error number on failure.
+ */
int __devm_mdiobus_register(struct mii_bus *bus, struct module *owner)
{
int ret;