]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: freescale: ucc_geth: Use the correct type to store WoL opts
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Tue, 3 Dec 2024 12:43:16 +0000 (13:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Dec 2024 13:41:52 +0000 (13:41 +0000)
The WoL opts are represented through a bitmask stored in a u32. As this
mask is copied as-is in the driver, make sure we use the exact same type
to store them internally.

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/ucc_geth.h

index e08cfc8d8904b7f15375de0ea61146b96dd330cb..60fd804a616a39d1b1b98345f3660e10f0b1fd18 100644 (file)
@@ -1216,7 +1216,7 @@ struct ucc_geth_private {
        int oldspeed;
        int oldduplex;
        int oldlink;
-       int wol_en;
+       u32 wol_en;
        u32 phy_wol_en;
 
        struct device_node *node;