wm831x_wdt.c (355a47ae7ebcf9d605aa809b259d380422e81b8d) | wm831x_wdt.c (f848a15347d9707b38430976e801dd442480b42a) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Watchdog driver for the wm831x PMICs 4 * 5 * Copyright (C) 2009 Wolfson Microelectronics 6 */ 7 8#include <linux/module.h> --- 253 unchanged lines hidden (view full) --- 262 wm831x_reg_lock(wm831x); 263 } else { 264 dev_err(wm831x->dev, 265 "Failed to unlock security key: %d\n", ret); 266 return ret; 267 } 268 } 269 | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Watchdog driver for the wm831x PMICs 4 * 5 * Copyright (C) 2009 Wolfson Microelectronics 6 */ 7 8#include <linux/module.h> --- 253 unchanged lines hidden (view full) --- 262 wm831x_reg_lock(wm831x); 263 } else { 264 dev_err(wm831x->dev, 265 "Failed to unlock security key: %d\n", ret); 266 return ret; 267 } 268 } 269 |
270 ret = devm_watchdog_register_device(dev, &driver_data->wdt); 271 if (ret != 0) { 272 dev_err(wm831x->dev, "watchdog_register_device() failed: %d\n", 273 ret); 274 return ret; 275 } 276 277 return 0; | 270 return devm_watchdog_register_device(dev, &driver_data->wdt); |
278} 279 280static struct platform_driver wm831x_wdt_driver = { 281 .probe = wm831x_wdt_probe, 282 .driver = { 283 .name = "wm831x-watchdog", 284 }, 285}; 286 287module_platform_driver(wm831x_wdt_driver); 288 289MODULE_AUTHOR("Mark Brown"); 290MODULE_DESCRIPTION("WM831x Watchdog"); 291MODULE_LICENSE("GPL"); 292MODULE_ALIAS("platform:wm831x-watchdog"); | 271} 272 273static struct platform_driver wm831x_wdt_driver = { 274 .probe = wm831x_wdt_probe, 275 .driver = { 276 .name = "wm831x-watchdog", 277 }, 278}; 279 280module_platform_driver(wm831x_wdt_driver); 281 282MODULE_AUTHOR("Mark Brown"); 283MODULE_DESCRIPTION("WM831x Watchdog"); 284MODULE_LICENSE("GPL"); 285MODULE_ALIAS("platform:wm831x-watchdog"); |