summaryrefslogtreecommitdiff
path: root/drivers/edac/layerscape_edac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/edac/layerscape_edac.c')
-rw-r--r--drivers/edac/layerscape_edac.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/edac/layerscape_edac.c b/drivers/edac/layerscape_edac.c
index 94cac7686a56..35ceaca578e1 100644
--- a/drivers/edac/layerscape_edac.c
+++ b/drivers/edac/layerscape_edac.c
@@ -38,6 +38,9 @@ static int __init fsl_ddr_mc_init(void)
{
int res;
+ if (ghes_get_devices())
+ return -EBUSY;
+
/* make sure error reporting method is sane */
switch (edac_op_state) {
case EDAC_OPSTATE_POLL: