mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2026-01-27 12:35:36 +01:00
bus: moxtet: Add spi device table
commit aaafe88d55 upstream.
The moxtet module fails to auto-load on. Add a SPI id table to
allow it to do so.
Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: Marek Behún <kabel@kernel.org>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b0ce6ddc1c
commit
08a2ae1d04
|
|
@ -830,6 +830,12 @@ static void moxtet_remove(struct spi_device *spi)
|
|||
mutex_destroy(&moxtet->lock);
|
||||
}
|
||||
|
||||
static const struct spi_device_id moxtet_spi_ids[] = {
|
||||
{ "moxtet" },
|
||||
{ },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(spi, moxtet_spi_ids);
|
||||
|
||||
static const struct of_device_id moxtet_dt_ids[] = {
|
||||
{ .compatible = "cznic,moxtet" },
|
||||
{},
|
||||
|
|
@ -841,6 +847,7 @@ static struct spi_driver moxtet_spi_driver = {
|
|||
.name = "moxtet",
|
||||
.of_match_table = moxtet_dt_ids,
|
||||
},
|
||||
.id_table = moxtet_spi_ids,
|
||||
.probe = moxtet_probe,
|
||||
.remove = moxtet_remove,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user