Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262682
b: refs/heads/master
c: 8039290
h: refs/heads/master
v: v3
  • Loading branch information
Wang Shaoyan authored and Takashi Iwai committed Aug 8, 2011
1 parent 9b9f94d commit 04bd58e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 94094c8aaeded11f8b99734b9ebdaada20b5f24a
refs/heads/master: 8039290a91c5dc4414093c086987a5d7738fe2fd
6 changes: 4 additions & 2 deletions trunk/sound/oss/pss.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,8 @@ static void configure_nonsound_components(void)

if (pss_cdrom_port == -1) { /* If cdrom port enablation wasn't requested */
printk(KERN_INFO "PSS: CDROM port not enabled.\n");
} else if (check_region(pss_cdrom_port, 2)) {
} else if (!request_region(pss_cdrom_port, 2, "PSS CDROM")) {
pss_cdrom_port = -1;
printk(KERN_ERR "PSS: CDROM I/O port conflict.\n");
} else {
set_io_base(devc, CONF_CDROM, pss_cdrom_port);
Expand Down Expand Up @@ -1232,7 +1233,8 @@ static void __exit cleanup_pss(void)
if(pssmpu)
unload_pss_mpu(&cfg_mpu);
unload_pss(&cfg);
}
} else if (pss_cdrom_port != -1)
release_region(pss_cdrom_port, 2);

if(!pss_keep_settings) /* Keep hardware settings if asked */
{
Expand Down

0 comments on commit 04bd58e

Please sign in to comment.