diff options
| author | Niels de Vos <ndevos@redhat.com> | 2013-07-29 09:38:05 +0200 |
|---|---|---|
| committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-16 08:05:51 -0500 |
| commit | d2a1f9e174ea0395ac2cb8260f7aad90ee3622c7 (patch) | |
| tree | 6f204cc75374efede64da191361dee8c355c5816 | |
| parent | bd4d4ee3d7fbc7ef6a6499859ee641c7f35b0f38 (diff) | |
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 <ndevos@redhat.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Huang Shijie <b32955@freescale.com>
| -rw-r--r-- | drivers/spi/spi-imx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index 81c7dd2228f9..15323d8bd9cf 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) { |
