shwdt.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) | shwdt.c (70b5b2b2feb00be6ed479557269438d505f86642) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * drivers/watchdog/shwdt.c 4 * 5 * Watchdog driver for integrated watchdog in the SuperH processors. 6 * 7 * Copyright (C) 2001 - 2012 Paul Mundt <lethal@linux-sh.org> 8 * --- 265 unchanged lines hidden (view full) --- 274 275 dev_info(&pdev->dev, "initialized.\n"); 276 277 pm_runtime_enable(&pdev->dev); 278 279 return 0; 280} 281 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * drivers/watchdog/shwdt.c 4 * 5 * Watchdog driver for integrated watchdog in the SuperH processors. 6 * 7 * Copyright (C) 2001 - 2012 Paul Mundt <lethal@linux-sh.org> 8 * --- 265 unchanged lines hidden (view full) --- 274 275 dev_info(&pdev->dev, "initialized.\n"); 276 277 pm_runtime_enable(&pdev->dev); 278 279 return 0; 280} 281 |
282static int sh_wdt_remove(struct platform_device *pdev) | 282static void sh_wdt_remove(struct platform_device *pdev) |
283{ 284 watchdog_unregister_device(&sh_wdt_dev); 285 286 pm_runtime_disable(&pdev->dev); | 283{ 284 watchdog_unregister_device(&sh_wdt_dev); 285 286 pm_runtime_disable(&pdev->dev); |
287 288 return 0; | |
289} 290 291static void sh_wdt_shutdown(struct platform_device *pdev) 292{ 293 sh_wdt_stop(&sh_wdt_dev); 294} 295 296static struct platform_driver sh_wdt_driver = { 297 .driver = { 298 .name = DRV_NAME, 299 }, 300 301 .probe = sh_wdt_probe, | 287} 288 289static void sh_wdt_shutdown(struct platform_device *pdev) 290{ 291 sh_wdt_stop(&sh_wdt_dev); 292} 293 294static struct platform_driver sh_wdt_driver = { 295 .driver = { 296 .name = DRV_NAME, 297 }, 298 299 .probe = sh_wdt_probe, |
302 .remove = sh_wdt_remove, | 300 .remove_new = sh_wdt_remove, |
303 .shutdown = sh_wdt_shutdown, 304}; 305 306static int __init sh_wdt_init(void) 307{ 308 if (unlikely(clock_division_ratio < 0x5 || 309 clock_division_ratio > 0x7)) { 310 clock_division_ratio = WTCSR_CKS_4096; --- 34 unchanged lines hidden --- | 301 .shutdown = sh_wdt_shutdown, 302}; 303 304static int __init sh_wdt_init(void) 305{ 306 if (unlikely(clock_division_ratio < 0x5 || 307 clock_division_ratio > 0x7)) { 308 clock_division_ratio = WTCSR_CKS_4096; --- 34 unchanged lines hidden --- |