Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24350
b: refs/heads/master
c: 070c699
h: refs/heads/master
v: v3
  • Loading branch information
Bjorn Helgaas authored and Linus Torvalds committed Mar 27, 2006
1 parent 3f3e6e0 commit cae0119
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 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: 803d0abb3dcfc93701c8a8dc7f2968a47271214c
refs/heads/master: 070c6999831dc4cfd9b07c74c2fea1964d7adfec
15 changes: 10 additions & 5 deletions trunk/sound/oss/cs4232.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ static int __initdata synthio = -1;
static int __initdata synthirq = -1;
static int __initdata isapnp = 1;

static unsigned int cs4232_devices;

MODULE_DESCRIPTION("CS4232 based soundcard driver");
MODULE_AUTHOR("Hannu Savolainen, Paul Barton-Davis");
MODULE_LICENSE("GPL");
Expand Down Expand Up @@ -421,6 +423,7 @@ static int cs4232_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev
return -ENODEV;
}
pnp_set_drvdata(dev,isapnpcfg);
cs4232_devices++;
return 0;
}

Expand Down Expand Up @@ -455,10 +458,11 @@ static int __init init_cs4232(void)
#endif
cfg.irq = -1;

if (isapnp &&
(pnp_register_driver(&cs4232_driver) > 0)
)
return 0;
if (isapnp) {
pnp_register_driver(&cs4232_driver);
if (cs4232_devices)
return 0;
}

if(io==-1||irq==-1||dma==-1)
{
Expand Down Expand Up @@ -503,7 +507,8 @@ static int __init setup_cs4232(char *str)
int ints[7];

/* If we have isapnp cards, no need for options */
if (pnp_register_driver(&cs4232_driver) > 0)
pnp_register_driver(&cs4232_driver);
if (cs4232_devices)
return 1;

str = get_options(str, ARRAY_SIZE(ints), ints);
Expand Down

0 comments on commit cae0119

Please sign in to comment.