Re: [PATCH] dmaengine: fsl_raid: Fix module autoload

From: Vinod Koul
Date: Sun Nov 13 2016 - 21:56:26 EST


On Wed, Oct 19, 2016 at 05:32:33PM -0300, Javier Martinez Canillas wrote:
> If the driver is built as a module, autoload won't work because the module
> alias information is not filled. So user-space can't match the registered
> device with the corresponding module.
>
> Export the module alias information using the MODULE_DEVICE_TABLE() macro.
>
> Before this patch:
>
> $ modinfo drivers/dma/fsl_raid.ko | grep alias
> $
>
> After this patch:
>
> $ modinfo drivers/dma/fsl_raid.ko | grep alias
> alias: of:N*T*Cfsl,raideng-v1.0C*
> alias: of:N*T*Cfsl,raideng-v1.0

Applied, thanks

--
~Vinod