summaryrefslogtreecommitdiff
path: root/drivers/soc/litex
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2021-01-25 11:08:34 +0900
committerStafford Horne <shorne@gmail.com>2021-01-25 11:16:06 +0900
commit2261352157a932717ec08b9dd18d1bfbb7c37c52 (patch)
treeb48a3ea4060a7d078aecb97de07597a8eb24467a /drivers/soc/litex
parent3706f9f76a4f79f8e7b2eb8b99877e89fe9ad732 (diff)
parent031c7a8cd6fc565e90320bf08f22ee6e70f9d969 (diff)
Merge remote-tracking branch 'openrisc/or1k-5.11-fixes' into or1k-5.12-updates
Pickup fixes that went upstream already in order to resolve conflicts in litex_soc_ctrl.c between 5.11 fixes that went upstream and the or1k-5.12-updates linux-next queue. Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'drivers/soc/litex')
-rw-r--r--drivers/soc/litex/litex_soc_ctrl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/soc/litex/litex_soc_ctrl.c b/drivers/soc/litex/litex_soc_ctrl.c
index a7dd5be9fd5b..6268bfa7f0d6 100644
--- a/drivers/soc/litex/litex_soc_ctrl.c
+++ b/drivers/soc/litex/litex_soc_ctrl.c
@@ -84,12 +84,13 @@ static int litex_reset_handler(struct notifier_block *this, unsigned long mode,
return NOTIFY_DONE;
}
+#ifdef CONFIG_OF
static const struct of_device_id litex_soc_ctrl_of_match[] = {
{.compatible = "litex,soc-controller"},
{},
};
-
MODULE_DEVICE_TABLE(of, litex_soc_ctrl_of_match);
+#endif /* CONFIG_OF */
static int litex_soc_ctrl_probe(struct platform_device *pdev)
{