[PATCH net-next v4 5/5] net: dwmac_socfpga: initialize local data for mdio regmap configuration
Russell King (Oracle)
linux at armlinux.org.uk
Wed Jun 7 05:28:03 PDT 2023
On Wed, Jun 07, 2023 at 03:59:41PM +0200, Maxime Chevallier wrote:
> @@ -447,19 +446,22 @@ static int socfpga_dwmac_probe(struct platform_device *pdev)
> struct mdio_regmap_config mrc;
> struct regmap *pcs_regmap;
> struct mii_bus *pcs_bus;
>
...
> + memset(&mrc, 0, sizeof(mrc));
...
> mrc.parent = &pdev->dev;
> mrc.valid_addr = 0x0;
> + mrc.autoscan = false;
Isn't this covered by the memset() ?
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
More information about the linux-arm-kernel
mailing list