summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2020-05-04 08:35:12 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-14 07:59:23 +0200
commit772f7d23042ffd1daef349660bdaff72a4119555 (patch)
tree87cde1f78caf5118b8f2cf8c2eb7a8a477e0c7c2
parent64d795914663efc49109a763be80945394171674 (diff)
downloadlinux-772f7d23042ffd1daef349660bdaff72a4119555.tar.gz
linux-772f7d23042ffd1daef349660bdaff72a4119555.tar.bz2
linux-772f7d23042ffd1daef349660bdaff72a4119555.zip
drm: ingenic-drm: add MODULE_DEVICE_TABLE
commit c59359a02d14a7256cd508a4886b7d2012df2363 upstream. so that the driver can load by matching the device tree if compiled as module. Cc: stable@vger.kernel.org # v5.3+ Fixes: 90b86fcc47b4 ("DRM: Add KMS driver for the Ingenic JZ47xx SoCs") Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> Signed-off-by: Paul Cercueil <paul@crapouillou.net> Link: https://patchwork.freedesktop.org/patch/msgid/1694a29b7a3449b6b662cec33d1b33f2ee0b174a.1588574111.git.hns@goldelico.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/gpu/drm/ingenic/ingenic-drm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/ingenic/ingenic-drm.c b/drivers/gpu/drm/ingenic/ingenic-drm.c
index 6d47ef7b148c..bcba2f024842 100644
--- a/drivers/gpu/drm/ingenic/ingenic-drm.c
+++ b/drivers/gpu/drm/ingenic/ingenic-drm.c
@@ -843,6 +843,7 @@ static const struct of_device_id ingenic_drm_of_match[] = {
{ .compatible = "ingenic,jz4770-lcd", .data = &jz4770_soc_info },
{ /* sentinel */ },
};
+MODULE_DEVICE_TABLE(of, ingenic_drm_of_match);
static struct platform_driver ingenic_drm_driver = {
.driver = {