]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
net: phy: at803x: fix passing the wrong reference for config_intr
authorChristian Marangi <ansuelsmth@gmail.com>
Fri, 8 Dec 2023 14:51:48 +0000 (15:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2023 10:34:27 +0000 (10:34 +0000)
Fix passing the wrong reference for config_initr on passing the function
pointer, drop the wrong & from at803x_config_intr in the PHY struct.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/at803x.c

index 37fb033e1c29e3e7554f087989e0400f1efd55d6..ef203b0807e588b69c1cfca1d81dfd30c0b35b89 100644 (file)
@@ -2104,7 +2104,7 @@ static struct phy_driver at803x_driver[] = {
        .write_page             = at803x_write_page,
        .get_features           = at803x_get_features,
        .read_status            = at803x_read_status,
-       .config_intr            = &at803x_config_intr,
+       .config_intr            = at803x_config_intr,
        .handle_interrupt       = at803x_handle_interrupt,
        .get_tunable            = at803x_get_tunable,
        .set_tunable            = at803x_set_tunable,
@@ -2134,7 +2134,7 @@ static struct phy_driver at803x_driver[] = {
        .resume                 = at803x_resume,
        .flags                  = PHY_POLL_CABLE_TEST,
        /* PHY_BASIC_FEATURES */
-       .config_intr            = &at803x_config_intr,
+       .config_intr            = at803x_config_intr,
        .handle_interrupt       = at803x_handle_interrupt,
        .cable_test_start       = at803x_cable_test_start,
        .cable_test_get_status  = at803x_cable_test_get_status,
@@ -2150,7 +2150,7 @@ static struct phy_driver at803x_driver[] = {
        .resume                 = at803x_resume,
        .flags                  = PHY_POLL_CABLE_TEST,
        /* PHY_BASIC_FEATURES */
-       .config_intr            = &at803x_config_intr,
+       .config_intr            = at803x_config_intr,
        .handle_interrupt       = at803x_handle_interrupt,
        .cable_test_start       = at803x_cable_test_start,
        .cable_test_get_status  = at803x_cable_test_get_status,