diff options
author | Chihau Chau <chihau@gmail.com> | 2010-02-25 15:40:28 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-04 10:59:01 -0500 |
commit | a917d4c4251314afc196fd7a7d9d10faff2effda (patch) | |
tree | 4624f05867d4b0e0cf2b7e9c843ad41eff268172 /drivers/staging | |
parent | d4023a5ee2f683f57636346c0baf94cda710055a (diff) |
Staging: comedi: poc: Adding some KERN_ facility level
This fixes some coding style issues like include KERN_ facility levels
in some printk() and one trailing whitespace error.
Signed-off-by: Chihau Chau <chihau@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-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 28eba6d3cb5..e15fbd7d314 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; |