]> www.infradead.org Git - users/hch/misc.git/commitdiff
net: phy: fixed_phy: remove unused interrupt support
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 6 Sep 2025 22:00:10 +0000 (00:00 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 10 Sep 2025 01:11:47 +0000 (18:11 -0700)
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>
drivers/net/phy/fixed_phy.c

index aae7bd4ce93e3b1e5e5a613d877dd96671c5afdb..1ac17ef333e422360623fb65814a9fe7575391c6 100644 (file)
@@ -114,7 +114,7 @@ int fixed_phy_set_link_update(struct phy_device *phydev,
 }
 EXPORT_SYMBOL_GPL(fixed_phy_set_link_update);
 
-static int __fixed_phy_add(unsigned int irq, int phy_addr,
+static int __fixed_phy_add(int phy_addr,
                           const struct fixed_phy_status *status)
 {
        int ret;
@@ -129,9 +129,6 @@ static int __fixed_phy_add(unsigned int irq, int phy_addr,
        if (!fp)
                return -ENOMEM;
 
-       if (irq != PHY_POLL)
-               fmb->mii_bus->irq[phy_addr] = irq;
-
        fp->addr = phy_addr;
        fp->status = *status;
 
@@ -142,7 +139,7 @@ static int __fixed_phy_add(unsigned int irq, int phy_addr,
 
 void fixed_phy_add(const struct fixed_phy_status *status)
 {
-       __fixed_phy_add(PHY_POLL, 0, status);
+       __fixed_phy_add(0, status);
 }
 EXPORT_SYMBOL_GPL(fixed_phy_add);
 
@@ -179,7 +176,7 @@ struct phy_device *fixed_phy_register(const struct fixed_phy_status *status,
        if (phy_addr < 0)
                return ERR_PTR(phy_addr);
 
-       ret = __fixed_phy_add(PHY_POLL, phy_addr, status);
+       ret = __fixed_phy_add(phy_addr, status);
        if (ret < 0) {
                ida_free(&phy_fixed_ida, phy_addr);
                return ERR_PTR(ret);