Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/panel: nec-nl8048hl11: Fix SPI alias

The panel-nec-nl8048hl11 driver incorrectly includes the OF vendor
prefix in its SPI alias. Fix it, and move the manual alias to an SPI
module device table.

Fixes: df439abe6501 ("drm/panel: Add driver for the NEC NL8048HL11 panel")
Reported-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191007170801.27647-3-laurent.pinchart@ideasonboard.com
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Laurent Pinchart and committed by
Tomi Valkeinen
cf0c4eb1 19305134

+8 -1
+8 -1
drivers/gpu/drm/panel/panel-nec-nl8048hl11.c
··· 230 230 231 231 MODULE_DEVICE_TABLE(of, nl8048_of_match); 232 232 233 + static const struct spi_device_id nl8048_ids[] = { 234 + { "nl8048hl11", 0 }, 235 + { /* sentinel */ } 236 + }; 237 + 238 + MODULE_DEVICE_TABLE(spi, nl8048_ids); 239 + 233 240 static struct spi_driver nl8048_driver = { 234 241 .probe = nl8048_probe, 235 242 .remove = nl8048_remove, 243 + .id_table = nl8048_ids, 236 244 .driver = { 237 245 .name = "panel-nec-nl8048hl11", 238 246 .pm = &nl8048_pm_ops, ··· 250 242 251 243 module_spi_driver(nl8048_driver); 252 244 253 - MODULE_ALIAS("spi:nec,nl8048hl11"); 254 245 MODULE_AUTHOR("Erik Gilling <konkers@android.com>"); 255 246 MODULE_DESCRIPTION("NEC-NL8048HL11 Driver"); 256 247 MODULE_LICENSE("GPL");