[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2a27d3730809242354u4cc24b96yda3973bfc3ddac92@mail.gmail.com>
Date: Thu, 25 Sep 2008 14:54:54 +0800
From: "Li Yang" <leoli@...escale.com>
To: "Timur Tabi" <timur@...escale.com>
Cc: linuxppc-dev@...abs.org, linux-kernel@...r.kernel.org,
dan.j.williams@...el.com
Subject: Re: [PATCH v2] fsl-dma: allow Freescale Elo DMA driver to be compiled as a module
On Thu, Sep 25, 2008 at 5:59 AM, Timur Tabi <timur@...escale.com> wrote:
> Modify the Freescale Elo / Elo Plus DMA driver so that it can be compiled as
> a module.
>
> The primary change is to stop treating the DMA controller as a bus, and the
> DMA channels as devices on the bus. This is because the Open Firmware (OF)
> kernel code does not allow busses to be removed, so although we can call
> of_platform_bus_probe() to probe the DMA channels, there is no
> of_platform_bus_remove(). Instead, the DMA channels are manually probed,
> similar to what fsl_elbc_nand.c does.
>
> Signed-off-by: Timur Tabi <timur@...escale.com>
> ---
>
> v2: updated per comments
>
> This patch is for the 2.6.28 kernel. This patch exposes a bug in the dmatest
> module, so my other patch "dmatest: properly handle duplicate DMA channels"
> should be applied if this patch is applied.
[snip]
> +static void __exit of_fsl_dma_exit(void)
> +{
> + of_unregister_platform_driver(&of_fsl_dma_driver);
> }
>
> -subsys_initcall(of_fsl_dma_chan_init);
> subsys_initcall(of_fsl_dma_init);
Not a critical problem. But module_init() are preferred for modules.
> +module_exit(of_fsl_dma_exit);
> +
> +MODULE_DESCRIPTION("Freescale Elo / Elo Plus DMA driver");
> +MODULE_LICENSE("GPL");
Acked-by: Li Yang <leoli@...escale.com>
- Leo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists