2013-07-29 07:38:13

by Niels de Vos

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

Enable auto loading by udev when spi-imx is compiled as a module.

Signed-off-by: Niels de Vos <[email protected]>
Cc: Shawn Guo <[email protected]>
---
drivers/spi/spi-imx.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c
index 7db4f43..ebfd20e 100644
--- a/drivers/spi/spi-imx.c
+++ b/drivers/spi/spi-imx.c
@@ -619,6 +619,7 @@ static const struct of_device_id spi_imx_dt_ids[] = {
{ .compatible = "fsl,imx51-ecspi", .data = &imx51_ecspi_devtype_data, },
{ /* sentinel */ }
};
+MODULE_DEVICE_TABLE(of, spi_imx_dt_ids);

static void spi_imx_chipselect(struct spi_device *spi, int is_active)
{
--
1.7.11.7


2013-07-29 11:40:57

by Mark Brown

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

On Mon, Jul 29, 2013 at 09:38:05AM +0200, Niels de Vos wrote:
> Enable auto loading by udev when spi-imx is compiled as a module.

Applied, thanks.


Attachments:
(No filename) (148.00 B)
signature.asc (836.00 B)
Digital signature
Download all attachments