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

net: phy: fixed_phy: remove unused interrupt support

The two callers of __fixed_phy_add() both pass PHY_POLL, so we can
remove the irq argument to simplify the function.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Heiner Kallweit and committed by
Jakub Kicinski
fecf7087 d436b5ab

+3 -6
+3 -6
drivers/net/phy/fixed_phy.c
··· 114 114 } 115 115 EXPORT_SYMBOL_GPL(fixed_phy_set_link_update); 116 116 117 - static int __fixed_phy_add(unsigned int irq, int phy_addr, 117 + static int __fixed_phy_add(int phy_addr, 118 118 const struct fixed_phy_status *status) 119 119 { 120 120 int ret; ··· 129 129 if (!fp) 130 130 return -ENOMEM; 131 131 132 - if (irq != PHY_POLL) 133 - fmb->mii_bus->irq[phy_addr] = irq; 134 - 135 132 fp->addr = phy_addr; 136 133 fp->status = *status; 137 134 ··· 139 142 140 143 void fixed_phy_add(const struct fixed_phy_status *status) 141 144 { 142 - __fixed_phy_add(PHY_POLL, 0, status); 145 + __fixed_phy_add(0, status); 143 146 } 144 147 EXPORT_SYMBOL_GPL(fixed_phy_add); 145 148 ··· 176 179 if (phy_addr < 0) 177 180 return ERR_PTR(phy_addr); 178 181 179 - ret = __fixed_phy_add(PHY_POLL, phy_addr, status); 182 + ret = __fixed_phy_add(phy_addr, status); 180 183 if (ret < 0) { 181 184 ida_free(&phy_fixed_ida, phy_addr); 182 185 return ERR_PTR(ret);