Commit 83a5c5af authored by Abhishek Shah's avatar Abhishek Shah Committed by David S. Miller

net: ethernet: bgmac: Remove unnecessary 'return' from platform_bgmac_idm_write

Return type for idm register write callback should be void as 'writel'
API is used for write operation. However, there no need to have 'return'
in this function.
Signed-off-by: default avatarAbhishek Shah <abhishek.shah@broadcom.com>
Reviewed-by: default avatarOza Oza <oza.oza@broadcom.com>
Reviewed-by: default avatarRay Jui <ray.jui@broadcom.com>
Reviewed-by: default avatarScott Branden <scott.branden@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 10b3bf54
...@@ -50,7 +50,7 @@ static u32 platform_bgmac_idm_read(struct bgmac *bgmac, u16 offset) ...@@ -50,7 +50,7 @@ static u32 platform_bgmac_idm_read(struct bgmac *bgmac, u16 offset)
static void platform_bgmac_idm_write(struct bgmac *bgmac, u16 offset, u32 value) static void platform_bgmac_idm_write(struct bgmac *bgmac, u16 offset, u32 value)
{ {
return writel(value, bgmac->plat.idm_base + offset); writel(value, bgmac->plat.idm_base + offset);
} }
static bool platform_bgmac_clk_enabled(struct bgmac *bgmac) static bool platform_bgmac_clk_enabled(struct bgmac *bgmac)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment