regulator: lochnagar: Add missing MODULE_DEVICE_TABLE
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 18 Jan 2019 11:36:30 +0000 (11:36 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 18 Jan 2019 18:02:25 +0000 (18:02 +0000)
Add the missing MODULE_DEVICE_TABLE and remove the comma from the
separator on the end of the of_device_id array.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/lochnagar-regulator.c

index 5a89e6d4b9a6bd51925d374a434614d159c69dd2..2c0743e65eafa29f27e166806bc8782676d85696 100644 (file)
@@ -232,8 +232,9 @@ static const struct of_device_id lochnagar_of_match[] = {
                .compatible = "cirrus,lochnagar2-vddcore",
                .data = &lochnagar_regulators[LOCHNAGAR_VDDCORE],
        },
-       {},
+       {}
 };
+MODULE_DEVICE_TABLE(of, lochnagar_of_match);
 
 static int lochnagar_regulator_probe(struct platform_device *pdev)
 {