projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PKTGEN]: fix device name handling
[powerpc.git]
/
sound
/
oss
/
ad1889.c
diff --git
a/sound/oss/ad1889.c
b/sound/oss/ad1889.c
index
09263d7
..
c0730a3
100644
(file)
--- a/
sound/oss/ad1889.c
+++ b/
sound/oss/ad1889.c
@@
-230,9
+230,8
@@
static ad1889_dev_t *ad1889_alloc_dev(struct pci_dev *pci)
struct dmabuf *dmabuf;
int i;
struct dmabuf *dmabuf;
int i;
- if ((dev = k
malloc(sizeof(ad1889_dev_t), GFP_KERNEL)) == NULL)
+ if ((dev = k
zalloc(sizeof(ad1889_dev_t), GFP_KERNEL)) == NULL)
return NULL;
return NULL;
- memset(dev, 0, sizeof(ad1889_dev_t));
spin_lock_init(&dev->lock);
dev->pci = pci;
spin_lock_init(&dev->lock);
dev->pci = pci;
@@
-778,7
+777,7
@@
static int ad1889_release(struct inode *inode, struct file *file)
return 0;
}
return 0;
}
-static struct file_operations ad1889_fops = {
+static
const
struct file_operations ad1889_fops = {
.owner = THIS_MODULE,
.llseek = no_llseek,
.read = ad1889_read,
.owner = THIS_MODULE,
.llseek = no_llseek,
.read = ad1889_read,
@@
-812,7
+811,7
@@
static int ad1889_mixer_ioctl(struct inode *inode, struct file *file,
return codec->mixer_ioctl(codec, cmd, arg);
}
return codec->mixer_ioctl(codec, cmd, arg);
}
-static struct file_operations ad1889_mixer_fops = {
+static
const
struct file_operations ad1889_mixer_fops = {
.owner = THIS_MODULE,
.llseek = no_llseek,
.ioctl = ad1889_mixer_ioctl,
.owner = THIS_MODULE,
.llseek = no_llseek,
.ioctl = ad1889_mixer_ioctl,