Skip to content

Commit

Permalink
[PATCH] Corgi Keyboard: Fix a couple of compile errors
Browse files Browse the repository at this point in the history
Fix a couple of compile errors in the corgi keyboard driver.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Richard Purdie authored and Linus Torvalds committed Sep 7, 2005
1 parent 4bc20a8 commit aba5a4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/input/keyboard/corgikbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ static void corgikbd_hinge_timer(unsigned long data)
unsigned long gprr;
unsigned long flags;

gprr = read_scoop_reg(SCOOP_GPRR) & (CORGI_SCP_SWA | CORGI_SCP_SWB);
gprr = read_scoop_reg(&corgiscoop_device.dev, SCOOP_GPRR) & (CORGI_SCP_SWA | CORGI_SCP_SWB);
if (gprr != sharpsl_hinge_state) {
hinge_count = 0;
sharpsl_hinge_state = gprr;
Expand Down Expand Up @@ -267,7 +267,7 @@ static int __init corgikbd_probe(struct device *dev)
dev_set_drvdata(dev,corgikbd);
strcpy(corgikbd->phys, "corgikbd/input0");

spin_lock_init(corgikbd->lock);
spin_lock_init(&corgikbd->lock);

/* Init Keyboard rescan timer */
init_timer(&corgikbd->timer);
Expand Down

0 comments on commit aba5a4c

Please sign in to comment.