b206b180526d639a8f84607fdb9f21bf5bcb16af
[openwrt/openwrt.git] / target / linux / generic / backport-6.1 / 707-v6.8-01-net-phy-at803x-fix-passing-the-wrong-reference-for-c.patch
1 From f8fdbf3389f44c7026f16e36cb1f2ff017f7f5b2 Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Fri, 8 Dec 2023 15:51:48 +0100
4 Subject: [PATCH 01/13] net: phy: at803x: fix passing the wrong reference for
5 config_intr
6
7 Fix passing the wrong reference for config_initr on passing the function
8 pointer, drop the wrong & from at803x_config_intr in the PHY struct.
9
10 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
11 Reviewed-by: Andrew Lunn <andrew@lunn.ch>
12 Signed-off-by: David S. Miller <davem@davemloft.net>
13 ---
14 drivers/net/phy/at803x.c | 6 +++---
15 1 file changed, 3 insertions(+), 3 deletions(-)
16
17 --- a/drivers/net/phy/at803x.c
18 +++ b/drivers/net/phy/at803x.c
19 @@ -2104,7 +2104,7 @@ static struct phy_driver at803x_driver[]
20 .write_page = at803x_write_page,
21 .get_features = at803x_get_features,
22 .read_status = at803x_read_status,
23 - .config_intr = &at803x_config_intr,
24 + .config_intr = at803x_config_intr,
25 .handle_interrupt = at803x_handle_interrupt,
26 .get_tunable = at803x_get_tunable,
27 .set_tunable = at803x_set_tunable,
28 @@ -2134,7 +2134,7 @@ static struct phy_driver at803x_driver[]
29 .resume = at803x_resume,
30 .flags = PHY_POLL_CABLE_TEST,
31 /* PHY_BASIC_FEATURES */
32 - .config_intr = &at803x_config_intr,
33 + .config_intr = at803x_config_intr,
34 .handle_interrupt = at803x_handle_interrupt,
35 .cable_test_start = at803x_cable_test_start,
36 .cable_test_get_status = at803x_cable_test_get_status,
37 @@ -2150,7 +2150,7 @@ static struct phy_driver at803x_driver[]
38 .resume = at803x_resume,
39 .flags = PHY_POLL_CABLE_TEST,
40 /* PHY_BASIC_FEATURES */
41 - .config_intr = &at803x_config_intr,
42 + .config_intr = at803x_config_intr,
43 .handle_interrupt = at803x_handle_interrupt,
44 .cable_test_start = at803x_cable_test_start,
45 .cable_test_get_status = at803x_cable_test_get_status,