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

omapdrm: panel: td028ttec1: replace MODULE_ALIAS by MODULE_DEVICE_TABLE

to make it easier to keep in sync with the OF device table.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

authored by

H. Nikolaus Schaller and committed by
Tomi Valkeinen
aa8eeb99 c1b9d4c7

+19 -4
+10 -2
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c
··· 460 460 461 461 MODULE_DEVICE_TABLE(of, td028ttec1_of_match); 462 462 463 + static const struct spi_device_id td028ttec1_ids[] = { 464 + { "toppoly,td028ttec1", 0 }, 465 + { "tpo,td028ttec1", 0}, 466 + { /* sentinel */ } 467 + }; 468 + 469 + MODULE_DEVICE_TABLE(spi, td028ttec1_ids); 470 + 471 + 463 472 static struct spi_driver td028ttec1_spi_driver = { 464 473 .probe = td028ttec1_panel_probe, 465 474 .remove = td028ttec1_panel_remove, 475 + .id_table = td028ttec1_ids, 466 476 467 477 .driver = { 468 478 .name = "panel-tpo-td028ttec1", ··· 483 473 484 474 module_spi_driver(td028ttec1_spi_driver); 485 475 486 - MODULE_ALIAS("spi:tpo,td028ttec1"); 487 - MODULE_ALIAS("spi:toppoly,td028ttec1"); 488 476 MODULE_AUTHOR("H. Nikolaus Schaller <hns@goldelico.com>"); 489 477 MODULE_DESCRIPTION("Toppoly TD028TTEC1 panel driver"); 490 478 MODULE_LICENSE("GPL");
+9 -2
drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c
··· 463 463 464 464 MODULE_DEVICE_TABLE(of, td028ttec1_of_match); 465 465 466 + static const struct spi_device_id td028ttec1_ids[] = { 467 + { "toppoly,td028ttec1", 0 }, 468 + { "tpo,td028ttec1", 0}, 469 + { /* sentinel */ } 470 + }; 471 + 472 + MODULE_DEVICE_TABLE(spi, td028ttec1_ids); 473 + 466 474 static struct spi_driver td028ttec1_spi_driver = { 467 475 .probe = td028ttec1_panel_probe, 468 476 .remove = td028ttec1_panel_remove, 477 + .id_table = td028ttec1_ids, 469 478 470 479 .driver = { 471 480 .name = "panel-tpo-td028ttec1", ··· 485 476 486 477 module_spi_driver(td028ttec1_spi_driver); 487 478 488 - MODULE_ALIAS("spi:tpo,td028ttec1"); 489 - MODULE_ALIAS("spi:toppoly,td028ttec1"); 490 479 MODULE_AUTHOR("H. Nikolaus Schaller <hns@goldelico.com>"); 491 480 MODULE_DESCRIPTION("Toppoly TD028TTEC1 panel driver"); 492 481 MODULE_LICENSE("GPL");