From: Charles Keepax Date: Fri, 18 Jan 2019 11:36:30 +0000 (+0000) Subject: regulator: lochnagar: Add missing MODULE_DEVICE_TABLE X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=692f8b56bb6afa06895d2723a033822994c1fe59;p=openwrt%2Fstaging%2Fblogic.git regulator: lochnagar: Add missing MODULE_DEVICE_TABLE 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 Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/lochnagar-regulator.c b/drivers/regulator/lochnagar-regulator.c index 5a89e6d4b9a6..2c0743e65eaf 100644 --- a/drivers/regulator/lochnagar-regulator.c +++ b/drivers/regulator/lochnagar-regulator.c @@ -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) {