Commit 2fc9aa60 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Wen Zhiwei
Browse files

spi: spidev: Add missing spi_device_id for jg10309-01

stable inclusion
from stable-v6.6.53
commit 4c21bba38b943ba072814cd792456373fae5f5e2
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IAZ0GM

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4c21bba38b943ba072814cd792456373fae5f5e2



--------------------------------

[ Upstream commit 5478a4f7b94414def7b56d2f18bc2ed9b0f3f1f2 ]

When the of_device_id entry for "elgin,jg10309-01" was added, the
corresponding spi_device_id was forgotten, causing a warning message
during boot-up:

    SPI driver spidev has no spi_device_id for elgin,jg10309-01

Fix module autoloading and shut up the warning by adding the missing
entry.

Fixes: 5f3eee1eef5d0edd ("spi: spidev: Add an entry for elgin,jg10309-01")
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/54bbb9d8a8db7e52d13e266f2d4a9bcd8b42a98a.1725366625.git.geert+renesas@glider.be


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarWen Zhiwei <wenzhiwei@kylinos.cn>
parent 52591f64
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -706,6 +706,7 @@ static struct class *spidev_class;
static const struct spi_device_id spidev_spi_ids[] = {
	{ .name = "bh2228fv" },
	{ .name = "dh2228fv" },
	{ .name = "jg10309-01" },
	{ .name = "ltc2488" },
	{ .name = "sx1301" },
	{ .name = "bk4" },