Commit bd1d6da1 authored by Dinh Nguyen's avatar Dinh Nguyen Committed by Borislav Petkov
Browse files

EDAC/synopsys: Use the quirk for version instead of ddr version



Version 2.40a supports DDR_ECC_INTR_SUPPORT for a quirk, so use that
quirk to determine a call to setup_address_map().

Signed-off-by: default avatarDinh Nguyen <dinguyen@kernel.org>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Reviewed-by: default avatarMichal Simek <michal.simek@xilinx.com>
Link: https://lkml.kernel.org/r/20211012190709.1504152-1-dinguyen@kernel.org
parent fa55b7dc
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1352,8 +1352,7 @@ static int mc_probe(struct platform_device *pdev)
		}
	}

	if (of_device_is_compatible(pdev->dev.of_node,
				    "xlnx,zynqmp-ddrc-2.40a"))
	if (priv->p_data->quirks & DDR_ECC_INTR_SUPPORT)
		setup_address_map(priv);
#endif