Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: axienet: Unexport and remove unused mdio functions

Both axienet_mdio_{enable/disable} functions are no longer used in
xilinx_axienet_main.c due to 253761a0e61b7. And axienet_mdio_disable is
not even used in the mdio.c. So unexport and remove them.

Signed-off-by: Andy Chiu <andy.chiu@sifive.com>
Reviewed-by: Greentime Hu <greentime.hu@sifive.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Andy Chiu and committed by
David S. Miller
29f8eefb 62a45b38

+1 -14
-2
drivers/net/ethernet/xilinx/xilinx_axienet.h
··· 611 611 #endif /* CONFIG_64BIT */ 612 612 613 613 /* Function prototypes visible in xilinx_axienet_mdio.c for other files */ 614 - int axienet_mdio_enable(struct axienet_local *lp); 615 - void axienet_mdio_disable(struct axienet_local *lp); 616 614 int axienet_mdio_setup(struct axienet_local *lp); 617 615 void axienet_mdio_teardown(struct axienet_local *lp); 618 616
+1 -12
drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c
··· 153 153 * Sets up the MDIO interface by initializing the MDIO clock and enabling the 154 154 * MDIO interface in hardware. 155 155 **/ 156 - int axienet_mdio_enable(struct axienet_local *lp) 156 + static int axienet_mdio_enable(struct axienet_local *lp) 157 157 { 158 158 u32 host_clock; 159 159 ··· 224 224 axienet_iow(lp, XAE_MDIO_MC_OFFSET, lp->mii_clk_div | XAE_MDIO_MC_MDIOEN_MASK); 225 225 226 226 return axienet_mdio_wait_until_ready(lp); 227 - } 228 - 229 - /** 230 - * axienet_mdio_disable - MDIO hardware disable function 231 - * @lp: Pointer to axienet local data structure. 232 - * 233 - * Disable the MDIO interface in hardware. 234 - **/ 235 - void axienet_mdio_disable(struct axienet_local *lp) 236 - { 237 - axienet_iow(lp, XAE_MDIO_MC_OFFSET, 0); 238 227 } 239 228 240 229 /**