Skip to content

Commit

Permalink
Staging: comedi: rti802: Checkpatch cleanups
Browse files Browse the repository at this point in the history
This fixes all checkpatch issues in the rti802 comedi driver.

Signed-off-by: Benjamin Adolphi <b.adolphi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Benjamin Adolphi authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent 0acc516 commit 83c41da
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drivers/staging/comedi/drivers/rti802.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ static int rti802_attach(struct comedi_device *dev, struct comedi_devconfig *it)
unsigned long iobase;

iobase = it->options[0];
printk("comedi%d: rti802: 0x%04lx ", dev->minor, iobase);
printk(KERN_INFO "comedi%d: rti802: 0x%04lx ", dev->minor, iobase);
if (!request_region(iobase, RTI802_SIZE, "rti802")) {
printk("I/O port conflict\n");
printk(KERN_WARNING "I/O port conflict\n");
return -EIO;
}
dev->iobase = iobase;
Expand Down Expand Up @@ -138,14 +138,12 @@ static int rti802_attach(struct comedi_device *dev, struct comedi_devconfig *it)
? &range_unipolar10 : &range_bipolar10;
}

printk("\n");

return 0;
}

static int rti802_detach(struct comedi_device *dev)
{
printk("comedi%d: rti802: remove\n", dev->minor);
printk(KERN_INFO "comedi%d: rti802: remove\n", dev->minor);

if (dev->iobase)
release_region(dev->iobase, RTI802_SIZE);
Expand Down

0 comments on commit 83c41da

Please sign in to comment.