Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47904
b: refs/heads/master
c: b322f40
h: refs/heads/master
v: v3
  • Loading branch information
Ahmed S. Darwish authored and Linus Torvalds committed Feb 12, 2007
1 parent 3213de8 commit fec3c98
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9d0094de6dfda8209241787d99f531356469d0f5
refs/heads/master: b322f4095056d6849c49412eb3e36637a062e9c0
3 changes: 2 additions & 1 deletion trunk/sound/oss/es1371.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
#include <linux/dma-mapping.h>
#include <linux/mutex.h>
#include <linux/mm.h>
#include <linux/kernel.h>

#include <asm/io.h>
#include <asm/page.h>
Expand Down Expand Up @@ -2998,7 +2999,7 @@ static int __devinit es1371_probe(struct pci_dev *pcidev, const struct pci_devic
set_fs(KERNEL_DS);
val = SOUND_MASK_LINE;
mixdev_ioctl(s->codec, SOUND_MIXER_WRITE_RECSRC, (unsigned long)&val);
for (i = 0; i < sizeof(initvol)/sizeof(initvol[0]); i++) {
for (i = 0; i < ARRAY_SIZE(initvol); i++) {
val = initvol[i].vol;
mixdev_ioctl(s->codec, initvol[i].mixch, (unsigned long)&val);
}
Expand Down
5 changes: 3 additions & 2 deletions trunk/sound/oss/soundcard.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <linux/ctype.h>
#include <linux/stddef.h>
#include <linux/kmod.h>
#include <linux/kernel.h>
#include <asm/dma.h>
#include <asm/io.h>
#include <linux/wait.h>
Expand Down Expand Up @@ -557,7 +558,7 @@ static int __init oss_init(void)
/* Protecting the innocent */
sound_dmap_flag = (dmabuf > 0 ? 1 : 0);

for (i = 0; i < sizeof (dev_list) / sizeof *dev_list; i++) {
for (i = 0; i < ARRAY_SIZE(dev_list); i++) {
device_create(sound_class, NULL,
MKDEV(SOUND_MAJOR, dev_list[i].minor),
"%s", dev_list[i].name);
Expand All @@ -581,7 +582,7 @@ static void __exit oss_cleanup(void)
{
int i, j;

for (i = 0; i < sizeof (dev_list) / sizeof *dev_list; i++) {
for (i = 0; i < ARRAY_SIZE(dev_list); i++) {
device_destroy(sound_class, MKDEV(SOUND_MAJOR, dev_list[i].minor));
if (!dev_list[i].num)
continue;
Expand Down

0 comments on commit fec3c98

Please sign in to comment.