wm831x_wdt.c (7a5da030c6ecdd6229f079902a17e641c7f2fbd6) | wm831x_wdt.c (1ae995dca9da3a5671aa471e1c355e47437a1056) |
---|---|
1/* 2 * Watchdog driver for the wm831x PMICs 3 * 4 * Copyright (C) 2009 Wolfson Microelectronics 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation --- 268 unchanged lines hidden (view full) --- 277 278 ret = watchdog_register_device(&driver_data->wdt); 279 if (ret != 0) { 280 dev_err(wm831x->dev, "watchdog_register_device() failed: %d\n", 281 ret); 282 goto err; 283 } 284 | 1/* 2 * Watchdog driver for the wm831x PMICs 3 * 4 * Copyright (C) 2009 Wolfson Microelectronics 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation --- 268 unchanged lines hidden (view full) --- 277 278 ret = watchdog_register_device(&driver_data->wdt); 279 if (ret != 0) { 280 dev_err(wm831x->dev, "watchdog_register_device() failed: %d\n", 281 ret); 282 goto err; 283 } 284 |
285 dev_set_drvdata(&pdev->dev, driver_data); | 285 platform_set_drvdata(pdev, driver_data); |
286 287 return 0; 288 289err: 290 return ret; 291} 292 293static int wm831x_wdt_remove(struct platform_device *pdev) 294{ | 286 287 return 0; 288 289err: 290 return ret; 291} 292 293static int wm831x_wdt_remove(struct platform_device *pdev) 294{ |
295 struct wm831x_wdt_drvdata *driver_data = dev_get_drvdata(&pdev->dev); | 295 struct wm831x_wdt_drvdata *driver_data = platform_get_drvdata(pdev); |
296 297 watchdog_unregister_device(&driver_data->wdt); 298 299 return 0; 300} 301 302static struct platform_driver wm831x_wdt_driver = { 303 .probe = wm831x_wdt_probe, --- 12 unchanged lines hidden --- | 296 297 watchdog_unregister_device(&driver_data->wdt); 298 299 return 0; 300} 301 302static struct platform_driver wm831x_wdt_driver = { 303 .probe = wm831x_wdt_probe, --- 12 unchanged lines hidden --- |