From 14e62810167826a936d759d11b07f23e826e541f Mon Sep 17 00:00:00 2001
From: Gianfranco Mariotti <gianfranco.mariotti@seco.com>
Date: Fri, 3 May 2024 19:26:23 +0200
Subject: [PATCH] [DRIVER] ata: ahci-imx: register driver at late_initcall

If SATA probes before PCIe, the interface does not come up.
We workaround this issue by registering the driver later, using late_initcall.
---
 drivers/ata/ahci_imx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ata/ahci_imx.c b/drivers/ata/ahci_imx.c
index f038267c4068be..a57406bbde3296 100644
--- a/drivers/ata/ahci_imx.c
+++ b/drivers/ata/ahci_imx.c
@@ -1688,7 +1688,7 @@ static int __init imx_ahci_init(void)
 	return ret;
 }
 
-device_initcall(imx_ahci_init);
+late_initcall(imx_ahci_init);
 
 MODULE_DESCRIPTION("Freescale i.MX AHCI SATA platform driver");
 MODULE_AUTHOR("Richard Zhu <Hong-Xing.Zhu@freescale.com>");
-- 
GitLab