2013-07-29 07:38:46

by Niels de Vos

[permalink] [raw]
Subject: [PATCH] pata_imx: expose module alias for loading from device-tree

Enable auto loading by udev when pata_imx is compiled as a module.

Signed-off-by: Niels de Vos <[email protected]>
Cc: Sascha Hauer <[email protected]>
---
drivers/ata/pata_imx.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/ata/pata_imx.c b/drivers/ata/pata_imx.c
index 4ec7c04..26386f0 100644
--- a/drivers/ata/pata_imx.c
+++ b/drivers/ata/pata_imx.c
@@ -237,6 +237,7 @@ static const struct of_device_id imx_pata_dt_ids[] = {
/* sentinel */
}
};
+MODULE_DEVICE_TABLE(of, imx_pata_dt_ids);

static struct platform_driver pata_imx_driver = {
.probe = pata_imx_probe,
--
1.7.11.7


2013-07-29 16:15:46

by Tejun Heo

[permalink] [raw]
Subject: Re: [PATCH] pata_imx: expose module alias for loading from device-tree

On Mon, Jul 29, 2013 at 09:38:38AM +0200, Niels de Vos wrote:
> Enable auto loading by udev when pata_imx is compiled as a module.
>
> Signed-off-by: Niels de Vos <[email protected]>
> Cc: Sascha Hauer <[email protected]>

Applied to libata/for-3.11-fixes.

Thanks.

--
tejun