Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44366
b: refs/heads/master
c: e0b79e0
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Victor authored and Wim Van Sebroeck committed Dec 7, 2006
1 parent 7bc4eca commit a3fb510
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 74e86ab884fb491c208905bdc32a9d95740be583
refs/heads/master: e0b79e0bc261ad320f6c218ac6823f7ca859171f
6 changes: 3 additions & 3 deletions trunk/drivers/char/watchdog/at91rm9200_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ static int __init at91wdt_probe(struct platform_device *pdev)
{
int res;

if (at91wdt_miscdev.dev)
if (at91wdt_miscdev.parent)
return -EBUSY;
at91wdt_miscdev.dev = &pdev->dev;
at91wdt_miscdev.parent = &pdev->dev;

res = misc_register(&at91wdt_miscdev);
if (res)
Expand All @@ -220,7 +220,7 @@ static int __exit at91wdt_remove(struct platform_device *pdev)

res = misc_deregister(&at91wdt_miscdev);
if (!res)
at91wdt_miscdev.dev = NULL;
at91wdt_miscdev.parent = NULL;

return res;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/mpcore_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ static int __devinit mpcore_wdt_probe(struct platform_device *dev)
goto err_free;
}

mpcore_wdt_miscdev.dev = &dev->dev;
mpcore_wdt_miscdev.parent = &dev->dev;
ret = misc_register(&mpcore_wdt_miscdev);
if (ret) {
dev_printk(KERN_ERR, _dev, "cannot register miscdev on minor=%d (err=%d)\n",
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/char/watchdog/omap_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ static int __init omap_wdt_probe(struct platform_device *pdev)
omap_wdt_disable();
omap_wdt_adjust_timeout(timer_margin);

omap_wdt_miscdev.dev = &pdev->dev;
omap_wdt_miscdev.parent = &pdev->dev;
ret = misc_register(&omap_wdt_miscdev);
if (ret)
goto fail;
Expand Down

0 comments on commit a3fb510

Please sign in to comment.