Skip to content

Commit 93dccc5

Browse files
arndbdavem330
authored andcommitted
mdio_bus: fix devm_mdiobus_alloc_size export
commit 6d48f44 "mdio_bus: implement devm_mdiobus_alloc/devm_mdiobus_free" introduced a new function devm_mdiobus_alloc_size() but added an export for a different function devm_mdiobus_alloc(), which was obviously a simple mistake that leads to build error whenever this function is used from a loadable module: ERROR: "devm_mdiobus_alloc_size" [drivers/net/ethernet/ti/davinci_mdio.ko] undefined! Signed-off-by: Arnd Bergmann <[email protected]> Cc: Grygorii Strashko <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Sergei Shtylyov <[email protected]> Cc: Lad, Prabhakar <[email protected]> Cc: David S. Miller <[email protected]> Cc: [email protected] Acked-by: Lad, Prabhakar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent dc3e5d1 commit 93dccc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/mdio_bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ struct mii_bus *devm_mdiobus_alloc_size(struct device *dev, int sizeof_priv)
117117

118118
return bus;
119119
}
120-
EXPORT_SYMBOL_GPL(devm_mdiobus_alloc);
120+
EXPORT_SYMBOL_GPL(devm_mdiobus_alloc_size);
121121

122122
/**
123123
* devm_mdiobus_free - Resource-managed mdiobus_free()

0 commit comments

Comments
 (0)