staging: use of_get_ethdev_address()
Subsystems (3)
Jakub Kicinski
maintainerPATCH 1/1 staging: use of_get_ethdev_address()
Use the new of_get_ethdev_address() helper for the cases where dev->dev_addr is passed in directly as the destination.
@@
expression dev, np;
@@
- of_get_mac_address(np, dev->dev_addr)
+ of_get_ethdev_address(np, dev)
---
Hi Greg, this needs to go to net-next, the helper is new.
--- drivers/staging/octeon/ethernet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/octeon/ethernet.c +1 -1
@@ -409,7 +409,7 @@ int cvm_oct_common_init(struct net_device *dev)struct octeon_ethernet *priv =netdev_priv (dev);int ret; - ret =of_get_mac_address (priv->of_node, dev->dev_addr); + ret =of_get_ethdev_address (priv->of_node, dev);if (ret)eth_hw_addr_random (dev);
Signature · 1 line
2.31.1
Quoted 9 lines · Jakub Kicinski
Use the new
of_get_ethdev_address()helper for the cases wheredev->dev_addris passed in directly as the destination.@@
expression dev, np;
@@
-of_get_mac_address(np, dev->dev_addr)
+of_get_ethdev_address(np, dev)
Quoted 6 lines
Signed-off-by Jakub Kicinski <[email protected]>---
Hi Greg, this needs to go to net-next, the helper is new.--- drivers/staging/octeon/ethernet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Quoted 10 lines · On Tue, 26 Oct 2021 10:50:38 -0700 you wrote:
Use the new
of_get_ethdev_address()helper for the cases wheredev->dev_addris passed in directly as the destination.@@
expression dev, np;
@@
-of_get_mac_address(np, dev->dev_addr)
+of_get_ethdev_address(np, dev)[...]
Here is the summary with links:
- [net-next] staging: use of_get_ethdev_address()
https://git.kernel.org/netdev/net-next/c/8b6ce9b02672
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html