media: marvell-ccic: mmp: add MODULE_DEVICE_TABLE
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 22 Jul 2019 11:33:10 +0000 (07:33 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 25 Jul 2019 10:27:14 +0000 (06:27 -0400)
This fixes autoloading the module by the OF compatible string.

Fixes: 83c40e6611ec ("media: marvell-ccic/mmp: add devicetree support")
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/marvell-ccic/mmp-driver.c

index 1055949..92b9225 100644 (file)
@@ -372,6 +372,7 @@ static const struct of_device_id mmpcam_of_match[] = {
        { .compatible = "marvell,mmp2-ccic", },
        {},
 };
+MODULE_DEVICE_TABLE(of, mmpcam_of_match);
 
 static struct platform_driver mmpcam_driver = {
        .probe          = mmpcam_probe,