Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173204
b: refs/heads/master
c: d2a7be0
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed Oct 14, 2009
1 parent 3b4ca87 commit 13581d3
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 3a8183a2061ba54c4c2b3cd31c3add6fd717e853
refs/heads/master: d2a7be0be1099c2554f4705d2c1c5081f8f96efc
6 changes: 1 addition & 5 deletions trunk/drivers/char/tb0219.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/smp_lock.h>

#include <asm/io.h>
#include <asm/reboot.h>
Expand All @@ -38,7 +37,7 @@ MODULE_PARM_DESC(major, "Major device number");

static void (*old_machine_restart)(char *command);
static void __iomem *tb0219_base;
static spinlock_t tb0219_lock;
static DEFINE_SPINLOCK(tb0219_lock);

#define tb0219_read(offset) readw(tb0219_base + (offset))
#define tb0219_write(offset, value) writew((value), tb0219_base + (offset))
Expand Down Expand Up @@ -237,7 +236,6 @@ static int tanbac_tb0219_open(struct inode *inode, struct file *file)
{
unsigned int minor;

cycle_kernel_lock();
minor = iminor(inode);
switch (minor) {
case 0:
Expand Down Expand Up @@ -306,8 +304,6 @@ static int __devinit tb0219_probe(struct platform_device *dev)
return retval;
}

spin_lock_init(&tb0219_lock);

old_machine_restart = _machine_restart;
_machine_restart = tb0219_restart;

Expand Down

0 comments on commit 13581d3

Please sign in to comment.