Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c324e271 authored by Sjoerd Simons's avatar Sjoerd Simons Committed by Greg Kroah-Hartman
Browse files

bus: moxtet: Add spi device table



[ Upstream commit aaafe88d5500ba18b33be72458439367ef878788 ]

The moxtet module fails to auto-load on. Add a SPI id table to
allow it to do so.

Signed-off-by: default avatarSjoerd Simons <sjoerd@collabora.com>
Cc:  <stable@vger.kernel.org>
Reviewed-by: default avatarMarek Behún <kabel@kernel.org>
Signed-off-by: default avatarGregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7f71d981
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -833,6 +833,12 @@ static int moxtet_remove(struct spi_device *spi)
	return 0;
}

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" },
	{},
@@ -844,6 +850,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,
};