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

drm/panel: sony-acx565akm: Fix SPI alias

The panel-sony-acx565akm 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: 1c8fc3f0c5d2 ("drm/panel: Add driver for the Sony ACX565AKM 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-4-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
d82a6ac3 cf0c4eb1

+8 -1
+8 -1
drivers/gpu/drm/panel/panel-sony-acx565akm.c
··· 684 684 685 685 MODULE_DEVICE_TABLE(of, acx565akm_of_match); 686 686 687 + static const struct spi_device_id acx565akm_ids[] = { 688 + { "acx565akm", 0 }, 689 + { /* sentinel */ } 690 + }; 691 + 692 + MODULE_DEVICE_TABLE(spi, acx565akm_ids); 693 + 687 694 static struct spi_driver acx565akm_driver = { 688 695 .probe = acx565akm_probe, 689 696 .remove = acx565akm_remove, 697 + .id_table = acx565akm_ids, 690 698 .driver = { 691 699 .name = "panel-sony-acx565akm", 692 700 .of_match_table = acx565akm_of_match, ··· 703 695 704 696 module_spi_driver(acx565akm_driver); 705 697 706 - MODULE_ALIAS("spi:sony,acx565akm"); 707 698 MODULE_AUTHOR("Nokia Corporation"); 708 699 MODULE_DESCRIPTION("Sony ACX565AKM LCD Panel Driver"); 709 700 MODULE_LICENSE("GPL");