git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
drivers
/
char
/
mwave
/
mwavedd.c
diff --git
a/drivers/char/mwave/mwavedd.c
b/drivers/char/mwave/mwavedd.c
index
39a2e66
..
8666171
100644
(file)
--- a/
drivers/char/mwave/mwavedd.c
+++ b/
drivers/char/mwave/mwavedd.c
@@
-271,7
+271,7
@@
static int mwave_ioctl(struct inode *inode, struct file *file,
ipcnum,
pDrvData->IPCs[ipcnum].usIntCount);
ipcnum,
pDrvData->IPCs[ipcnum].usIntCount);
- if (ipcnum >
=
ARRAY_SIZE(pDrvData->IPCs)) {
+ if (ipcnum > ARRAY_SIZE(pDrvData->IPCs)) {
PRINTK_ERROR(KERN_ERR_MWAVE
"mwavedd::mwave_ioctl:"
" IOCTL_MW_REGISTER_IPC:"
PRINTK_ERROR(KERN_ERR_MWAVE
"mwavedd::mwave_ioctl:"
" IOCTL_MW_REGISTER_IPC:"
@@
-454,7
+454,7
@@
static int register_serial_portandirq(unsigned int port, int irq)
}
}
-static
const
struct file_operations mwave_fops = {
+static struct file_operations mwave_fops = {
.owner = THIS_MODULE,
.read = mwave_read,
.write = mwave_write,
.owner = THIS_MODULE,
.read = mwave_read,
.write = mwave_write,