summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-imx.c
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2013-07-29 09:38:05 +0200
committerMark Brown <broonie@linaro.org>2013-07-29 12:40:08 +0100
commit27743e0bfdb227617017d14dcc7fa64f34d48671 (patch)
tree017eb2936c5b0aafee706cb1b5693f1ace5a5966 /drivers/spi/spi-imx.c
parent83174626ccf897827d2c49f26d9b0b7f74af85cc (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>
Diffstat (limited to 'drivers/spi/spi-imx.c')
-rw-r--r--drivers/spi/spi-imx.c1
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)
{