Skip to content

Commit 4912649

Browse files
GallaisPoutinegregkh
authored andcommitted
staging: fbtft: ili9341: use macro FBTFT_REGISTER_SPI_DRIVER
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>
1 parent ac83631 commit 4912649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/fbtft/fb_ili9341.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ static struct fbtft_display display = {
145145
},
146146
};
147147

148-
FBTFT_REGISTER_DRIVER(DRVNAME, "ilitek,ili9341", &display);
148+
FBTFT_REGISTER_SPI_DRIVER(DRVNAME, "ilitek", "ili9341", &display);
149149

150150
MODULE_ALIAS("spi:" DRVNAME);
151151
MODULE_ALIAS("platform:" DRVNAME);

0 commit comments

Comments
 (0)