lkml.org 
[lkml]   [2024]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v3 1/2] misc: sram: Move probe of sram subsystem
Date
From: Pascal Fontain <pascal.fontain@bachmann.info>

The sram subsystem might use the dma-buf subsystem which only gets
initialized in subsys_initcall phase. Because of this we move the sram
initcall into the device phase.

Signed-off-by: Pascal Fontain <pascal.fontain@bachmann.info>
---
drivers/misc/sram.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c
index e248c0a8882f..632f90d9bcea 100644
--- a/drivers/misc/sram.c
+++ b/drivers/misc/sram.c
@@ -461,4 +461,4 @@ static int __init sram_init(void)
return platform_driver_register(&sram_driver);
}

-postcore_initcall(sram_init);
+device_initcall(sram_init);
--
2.39.2

\
 
 \ /
  Last update: 2024-05-27 16:31    [W:0.049 / U:3.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site