diff options
| author | Fabio Estevam <[email protected]> | 2021-03-15 17:20:29 +0000 |
|---|---|---|
| committer | Alexandre Belloni <[email protected]> | 2021-03-15 22:05:03 +0000 |
| commit | 198da7be18c47637d69cdab1f65581b04ebd759d (patch) | |
| tree | 7bbdec4f1a1c36e7e2269e35183a273cb01bc60f /drivers/rtc/rtc-imxdi.c | |
| parent | rtc: rv3028: correct weekday register usage (diff) | |
| download | kernel-198da7be18c47637d69cdab1f65581b04ebd759d.tar.gz kernel-198da7be18c47637d69cdab1f65581b04ebd759d.zip | |
rtc: imxdi: Convert to a DT-only driver
i.MX has been converted to a DT-only platform, so make the driver
depend on OF, remove the CONFIG_OF ifdefery and remove of_match_ptr().
Signed-off-by: Fabio Estevam <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/rtc/rtc-imxdi.c')
| -rw-r--r-- | drivers/rtc/rtc-imxdi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-imxdi.c b/drivers/rtc/rtc-imxdi.c index c2692da74e09..c1806f4d68e7 100644 --- a/drivers/rtc/rtc-imxdi.c +++ b/drivers/rtc/rtc-imxdi.c @@ -840,19 +840,17 @@ static int __exit dryice_rtc_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_OF static const struct of_device_id dryice_dt_ids[] = { { .compatible = "fsl,imx25-rtc" }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, dryice_dt_ids); -#endif static struct platform_driver dryice_rtc_driver = { .driver = { .name = "imxdi_rtc", - .of_match_table = of_match_ptr(dryice_dt_ids), + .of_match_table = dryice_dt_ids, }, .remove = __exit_p(dryice_rtc_remove), }; |
