Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170394
b: refs/heads/master
c: 462265b
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner authored and David S. Miller committed Nov 3, 2009
1 parent cc8a397 commit 67426ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 49ab972aea7fca7b94f9df0f1f077fdab40a825d
refs/heads/master: 462265bf494c4f2a2f6e06480590becadecbfea7
6 changes: 3 additions & 3 deletions trunk/drivers/watchdog/riowd.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/miscdevice.h>
#include <linux/smp_lock.h>
#include <linux/watchdog.h>
#include <linux/of.h>
#include <linux/of_device.h>
Expand Down Expand Up @@ -75,7 +74,6 @@ static void riowd_writereg(struct riowd *p, u8 val, int index)

static int riowd_open(struct inode *inode, struct file *filp)
{
cycle_kernel_lock();
nonseekable_open(inode, filp);
return 0;
}
Expand Down Expand Up @@ -194,6 +192,8 @@ static int __devinit riowd_probe(struct of_device *op,
printk(KERN_ERR PFX "Cannot map registers.\n");
goto out_free;
}
/* Make miscdev useable right away */
riowd_device = p;

err = misc_register(&riowd_miscdev);
if (err) {
Expand All @@ -205,10 +205,10 @@ static int __devinit riowd_probe(struct of_device *op,
"regs at %p\n", riowd_timeout, p->regs);

dev_set_drvdata(&op->dev, p);
riowd_device = p;
return 0;

out_iounmap:
riowd_device = NULL;
of_iounmap(&op->resource[0], p->regs, 2);

out_free:
Expand Down

0 comments on commit 67426ac

Please sign in to comment.