lkml.org 
[lkml]   [2011]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH V2 02/13] dw_dmac: Replace module_init() with subsys_initcall()
    Date
    In some cases users of dw_dmac are initialized before dw_dmac, and if they try
    to use dw_dmac, they simply fail. So its better we register init() routine
    of driver using subsys_initcall() instead of module_init(), so that dma driver
    is available at the earliest possible.

    Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
    ---
    drivers/dma/dw_dmac.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c
    index 08dab3b..064a183 100644
    --- a/drivers/dma/dw_dmac.c
    +++ b/drivers/dma/dw_dmac.c
    @@ -1455,7 +1455,7 @@ static int __init dw_init(void)
    {
    return platform_driver_probe(&dw_driver, dw_probe);
    }
    -module_init(dw_init);
    +subsys_initcall(dw_init);

    static void __exit dw_exit(void)
    {
    --
    1.7.2.2


    \
     
     \ /
      Last update: 2011-03-03 11:21    [W:0.019 / U:4.976 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site