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

drm/panel: tpo-td043mtea1: Fix SPI alias

The panel-tpo-td043mtea1 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: dc2e1e5b2799 ("drm/panel: Add driver for the Toppoly TD043MTEA1 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-6-laurent.pinchart@ideasonboard.com
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Tested-by: H. Nikolaus Schaller <hns@goldelico.com>

authored by

Laurent Pinchart and committed by
Tomi Valkeinen
cc635be3 692a5424

+8 -1
+8 -1
drivers/gpu/drm/panel/panel-tpo-td043mtea1.c
··· 491 491 492 492 MODULE_DEVICE_TABLE(of, td043mtea1_of_match); 493 493 494 + static const struct spi_device_id td043mtea1_ids[] = { 495 + { "td043mtea1", 0 }, 496 + { /* sentinel */ } 497 + }; 498 + 499 + MODULE_DEVICE_TABLE(spi, td043mtea1_ids); 500 + 494 501 static struct spi_driver td043mtea1_driver = { 495 502 .probe = td043mtea1_probe, 496 503 .remove = td043mtea1_remove, 504 + .id_table = td043mtea1_ids, 497 505 .driver = { 498 506 .name = "panel-tpo-td043mtea1", 499 507 .pm = &td043mtea1_pm_ops, ··· 511 503 512 504 module_spi_driver(td043mtea1_driver); 513 505 514 - MODULE_ALIAS("spi:tpo,td043mtea1"); 515 506 MODULE_AUTHOR("Gražvydas Ignotas <notasas@gmail.com>"); 516 507 MODULE_DESCRIPTION("TPO TD043MTEA1 Panel Driver"); 517 508 MODULE_LICENSE("GPL");