Skip to content

Commit

Permalink
[PATCH] sbus/char/uctrl: missing prototypes and NULL noise removal
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Dec 15, 2005
1 parent bc05d83 commit fec607f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/sbus/char/uctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ static void uctrl_do_txn(struct uctrl_txn *txn)
}
}

void uctrl_get_event_status()
void uctrl_get_event_status(void)
{
struct uctrl_driver *driver = &drv;
struct uctrl_txn txn;
Expand All @@ -318,7 +318,7 @@ void uctrl_get_event_status()
txn.opcode = READ_EVENT_STATUS;
txn.inbits = 0;
txn.outbits = 2;
txn.inbuf = 0;
txn.inbuf = NULL;
txn.outbuf = outbits;

uctrl_do_txn(&txn);
Expand All @@ -329,7 +329,7 @@ void uctrl_get_event_status()
dprintk(("ev is %x\n", driver->status.event_status));
}

void uctrl_get_external_status()
void uctrl_get_external_status(void)
{
struct uctrl_driver *driver = &drv;
struct uctrl_txn txn;
Expand All @@ -339,7 +339,7 @@ void uctrl_get_external_status()
txn.opcode = READ_EXTERNAL_STATUS;
txn.inbits = 0;
txn.outbits = 2;
txn.inbuf = 0;
txn.inbuf = NULL;
txn.outbuf = outbits;

uctrl_do_txn(&txn);
Expand Down Expand Up @@ -414,7 +414,7 @@ static void __exit ts102_uctrl_cleanup(void)
if (driver->irq)
free_irq(driver->irq, driver);
if (driver->regs)
driver->regs = 0;
driver->regs = NULL;
}

module_init(ts102_uctrl_init);
Expand Down

0 comments on commit fec607f

Please sign in to comment.