Commit 83c41dab authored by Benjamin Adolphi's avatar Benjamin Adolphi Committed by Greg Kroah-Hartman

Staging: comedi: rti802: Checkpatch cleanups

This fixes all checkpatch issues in the rti802 comedi driver.
Signed-off-by: default avatarBenjamin Adolphi <b.adolphi@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0acc516a
...@@ -106,9 +106,9 @@ static int rti802_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -106,9 +106,9 @@ static int rti802_attach(struct comedi_device *dev, struct comedi_devconfig *it)
unsigned long iobase; unsigned long iobase;
iobase = it->options[0]; 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")) { if (!request_region(iobase, RTI802_SIZE, "rti802")) {
printk("I/O port conflict\n"); printk(KERN_WARNING "I/O port conflict\n");
return -EIO; return -EIO;
} }
dev->iobase = iobase; dev->iobase = iobase;
...@@ -138,14 +138,12 @@ static int rti802_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -138,14 +138,12 @@ static int rti802_attach(struct comedi_device *dev, struct comedi_devconfig *it)
? &range_unipolar10 : &range_bipolar10; ? &range_unipolar10 : &range_bipolar10;
} }
printk("\n");
return 0; return 0;
} }
static int rti802_detach(struct comedi_device *dev) 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) if (dev->iobase)
release_region(dev->iobase, RTI802_SIZE); release_region(dev->iobase, RTI802_SIZE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment