diff options
| -rw-r--r-- | drivers/staging/comedi/drivers/poc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/staging/comedi/drivers/poc.c b/drivers/staging/comedi/drivers/poc.c index 28eba6d3cb5a..e15fbd7d3141 100644 --- a/drivers/staging/comedi/drivers/poc.c +++ b/drivers/staging/comedi/drivers/poc.c | |||
| @@ -122,22 +122,21 @@ static int poc_attach(struct comedi_device *dev, struct comedi_devconfig *it) | |||
| 122 | unsigned int iosize; | 122 | unsigned int iosize; |
| 123 | 123 | ||
| 124 | iobase = it->options[0]; | 124 | iobase = it->options[0]; |
| 125 | printk("comedi%d: poc: using %s iobase 0x%lx\n", dev->minor, | 125 | printk(KERN_INFO "comedi%d: poc: using %s iobase 0x%lx\n", dev->minor, |
| 126 | this_board->name, iobase); | 126 | this_board->name, iobase); |
| 127 | 127 | ||
| 128 | dev->board_name = this_board->name; | 128 | dev->board_name = this_board->name; |
| 129 | 129 | ||
| 130 | if (iobase == 0) { | 130 | if (iobase == 0) { |
| 131 | printk("io base address required\n"); | 131 | printk(KERN_ERR "io base address required\n"); |
| 132 | return -EINVAL; | 132 | return -EINVAL; |
| 133 | } | 133 | } |
| 134 | 134 | ||
| 135 | iosize = this_board->iosize; | 135 | iosize = this_board->iosize; |
| 136 | /* check if io addresses are available */ | 136 | /* check if io addresses are available */ |
| 137 | if (!request_region(iobase, iosize, "dac02")) { | 137 | if (!request_region(iobase, iosize, "dac02")) { |
| 138 | printk | 138 | printk(KERN_ERR "I/O port conflict: failed to allocate ports " |
| 139 | ("I/O port conflict: failed to allocate ports 0x%lx to " | 139 | "0x%lx to 0x%lx\n", iobase, iobase + iosize - 1); |
| 140 | "0x%lx\n", iobase, iobase + iosize - 1); | ||
| 141 | return -EIO; | 140 | return -EIO; |
| 142 | } | 141 | } |
| 143 | dev->iobase = iobase; | 142 | dev->iobase = iobase; |
