Skip to content

Commit 9d8ca99

Browse files
AaronDotWim Van Sebroeck
authored andcommitted
watchdog: loongson1: Drop CONFIG_OF
The general recommendation is to not use of_match_ptr() or CONFIG_OF ifdef. Drop them. Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent 6121d0b commit 9d8ca99

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/watchdog/loongson1_wdt.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,20 +142,18 @@ static int ls1x_wdt_probe(struct platform_device *pdev)
142142
return devm_watchdog_register_device(dev, &drvdata->wdt);
143143
}
144144

145-
#ifdef CONFIG_OF
146145
static const struct of_device_id ls1x_wdt_dt_ids[] = {
147146
{ .compatible = "loongson,ls1b-wdt", },
148147
{ .compatible = "loongson,ls1c-wdt", },
149148
{ /* sentinel */ }
150149
};
151150
MODULE_DEVICE_TABLE(of, ls1x_wdt_dt_ids);
152-
#endif
153151

154152
static struct platform_driver ls1x_wdt_driver = {
155153
.probe = ls1x_wdt_probe,
156154
.driver = {
157155
.name = "ls1x-wdt",
158-
.of_match_table = of_match_ptr(ls1x_wdt_dt_ids),
156+
.of_match_table = ls1x_wdt_dt_ids,
159157
},
160158
};
161159

0 commit comments

Comments
 (0)