Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Binbin Zhou and committed by
Wim Van Sebroeck
9d8ca99d 6121d0b8

+1 -3
+1 -3
drivers/watchdog/loongson1_wdt.c
··· 142 142 return devm_watchdog_register_device(dev, &drvdata->wdt); 143 143 } 144 144 145 - #ifdef CONFIG_OF 146 145 static const struct of_device_id ls1x_wdt_dt_ids[] = { 147 146 { .compatible = "loongson,ls1b-wdt", }, 148 147 { .compatible = "loongson,ls1c-wdt", }, 149 148 { /* sentinel */ } 150 149 }; 151 150 MODULE_DEVICE_TABLE(of, ls1x_wdt_dt_ids); 152 - #endif 153 151 154 152 static struct platform_driver ls1x_wdt_driver = { 155 153 .probe = ls1x_wdt_probe, 156 154 .driver = { 157 155 .name = "ls1x-wdt", 158 - .of_match_table = of_match_ptr(ls1x_wdt_dt_ids), 156 + .of_match_table = ls1x_wdt_dt_ids, 159 157 }, 160 158 }; 161 159