net: phy: fixed_phy: remove irq argument from fixed_phy_add
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 17 May 2025 20:34:32 +0000 (22:34 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 May 2025 01:17:43 +0000 (18:17 -0700)
All callers pass PHY_POLL, therefore remove irq argument from
fixed_phy_add().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Acked-by: Greg Ungerer <gerg@linux-m68k.org>
Link: https://patch.msgid.link/b3b9b3bc-c310-4a54-b376-c909c83575de@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
arch/m68k/coldfire/m5272.c
arch/mips/bcm47xx/setup.c
drivers/net/phy/fixed_phy.c
include/linux/phy_fixed.h

index 734dab657fe376da4e0ffe4a5b0977f411d9999f..5b70dfdab368bc9ec13f7094c81b64b8ef9ec89c 100644 (file)
@@ -119,7 +119,7 @@ static struct fixed_phy_status nettel_fixed_phy_status __initdata = {
 static int __init init_BSP(void)
 {
        m5272_uarts_init();
-       fixed_phy_add(PHY_POLL, 0, &nettel_fixed_phy_status);
+       fixed_phy_add(0, &nettel_fixed_phy_status);
        clkdev_add_table(m5272_clk_lookup, ARRAY_SIZE(m5272_clk_lookup));
        return 0;
 }
index 247be207f293ce0ca195834b53bb152673deb63e..de426a474b5b2420f560ba934ae37074e8217909 100644 (file)
@@ -282,7 +282,7 @@ static int __init bcm47xx_register_bus_complete(void)
        bcm47xx_leds_register();
        bcm47xx_workarounds();
 
-       fixed_phy_add(PHY_POLL, 0, &bcm47xx_fixed_phy_status);
+       fixed_phy_add(0, &bcm47xx_fixed_phy_status);
        return 0;
 }
 device_initcall(bcm47xx_register_bus_complete);
index c91adf2464c55c0c919726b81922703f1198a101..34a71f223f0f610e29370dc80526d424f5f085da 100644 (file)
@@ -160,10 +160,9 @@ static int fixed_phy_add_gpiod(unsigned int irq, int phy_addr,
        return 0;
 }
 
-int fixed_phy_add(unsigned int irq, int phy_addr,
-                 struct fixed_phy_status *status)
+int fixed_phy_add(int phy_addr, struct fixed_phy_status *status)
 {
-       return fixed_phy_add_gpiod(irq, phy_addr, status, NULL);
+       return fixed_phy_add_gpiod(PHY_POLL, phy_addr, status, NULL);
 }
 EXPORT_SYMBOL_GPL(fixed_phy_add);
 
index 3392c09b5d24adc7e61ba2a1c40c5bca90dbcb44..316bb4deda373f35b58ee6a001e49c53c7d88ca8 100644 (file)
@@ -17,8 +17,7 @@ struct net_device;
 
 #if IS_ENABLED(CONFIG_FIXED_PHY)
 extern int fixed_phy_change_carrier(struct net_device *dev, bool new_carrier);
-extern int fixed_phy_add(unsigned int irq, int phy_id,
-                        struct fixed_phy_status *status);
+int fixed_phy_add(int phy_id, struct fixed_phy_status *status);
 extern struct phy_device *fixed_phy_register(unsigned int irq,
                                             struct fixed_phy_status *status,
                                             struct device_node *np);
@@ -28,7 +27,7 @@ extern int fixed_phy_set_link_update(struct phy_device *phydev,
                        int (*link_update)(struct net_device *,
                                           struct fixed_phy_status *));
 #else
-static inline int fixed_phy_add(unsigned int irq, int phy_id,
+static inline int fixed_phy_add(int phy_id,
                                struct fixed_phy_status *status)
 {
        return -ENODEV;