Skip to content

Commit

Permalink
staging: fbtft: ili9341: use macro FBTFT_REGISTER_SPI_DRIVER
Browse files Browse the repository at this point in the history
[ Upstream commit 4912649 ]

Using FBTFT_REGISTER_DRIVER resolves to a NULL struct spi_device_id. This
ultimately causes a warning when the module probes. Fixes it.

Signed-off-by: Raphael Gallais-Pou <rgallaispou@gmail.com>
Link: https://lore.kernel.org/r/20230718172024.67488-1-rgallaispou@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
GallaisPoutine authored and gregkh committed Sep 13, 2023
1 parent 55954ee commit 0ffed24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/fbtft/fb_ili9341.c
Expand Up @@ -145,7 +145,7 @@ static struct fbtft_display display = {
},
};

FBTFT_REGISTER_DRIVER(DRVNAME, "ilitek,ili9341", &display);
FBTFT_REGISTER_SPI_DRIVER(DRVNAME, "ilitek", "ili9341", &display);

MODULE_ALIAS("spi:" DRVNAME);
MODULE_ALIAS("platform:" DRVNAME);
Expand Down

0 comments on commit 0ffed24

Please sign in to comment.