gpio_wdt.c (85a3685852d9ac7d92be9d824533c915a4597fa4) gpio_wdt.c (5e53c8ed813d6100d2cebbf83f2192b201f70772)
1/*
2 * Driver for watchdog device controlled through GPIO-line
3 *
4 * Author: 2013, Alexander Shiyan <shc_work@mail.ru>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 253 unchanged lines hidden (view full) ---

262static struct platform_driver gpio_wdt_driver = {
263 .driver = {
264 .name = "gpio-wdt",
265 .of_match_table = gpio_wdt_dt_ids,
266 },
267 .probe = gpio_wdt_probe,
268 .remove = gpio_wdt_remove,
269};
1/*
2 * Driver for watchdog device controlled through GPIO-line
3 *
4 * Author: 2013, Alexander Shiyan <shc_work@mail.ru>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 253 unchanged lines hidden (view full) ---

262static struct platform_driver gpio_wdt_driver = {
263 .driver = {
264 .name = "gpio-wdt",
265 .of_match_table = gpio_wdt_dt_ids,
266 },
267 .probe = gpio_wdt_probe,
268 .remove = gpio_wdt_remove,
269};
270
271#ifdef CONFIG_GPIO_WATCHDOG_ARCH_INITCALL
272static int __init gpio_wdt_init(void)
273{
274 return platform_driver_register(&gpio_wdt_driver);
275}
276arch_initcall(gpio_wdt_init);
277#else
270module_platform_driver(gpio_wdt_driver);
278module_platform_driver(gpio_wdt_driver);
279#endif
271
272MODULE_AUTHOR("Alexander Shiyan <shc_work@mail.ru>");
273MODULE_DESCRIPTION("GPIO Watchdog");
274MODULE_LICENSE("GPL");
280
281MODULE_AUTHOR("Alexander Shiyan <shc_work@mail.ru>");
282MODULE_DESCRIPTION("GPIO Watchdog");
283MODULE_LICENSE("GPL");