diff options
Diffstat (limited to 'sound/pci/azt3328.c')
-rw-r--r-- | sound/pci/azt3328.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c index d5261bdec583..dc638f395c02 100644 --- a/sound/pci/azt3328.c +++ b/sound/pci/azt3328.c | |||
@@ -1238,8 +1238,7 @@ static int __devinit snd_azf3328_config_joystick(azf3328_t *chip, int dev) | |||
1238 | chip->gameport = gp = gameport_allocate_port(); | 1238 | chip->gameport = gp = gameport_allocate_port(); |
1239 | if (!gp) { | 1239 | if (!gp) { |
1240 | printk(KERN_ERR "azt3328: cannot allocate memory for gameport\n"); | 1240 | printk(KERN_ERR "azt3328: cannot allocate memory for gameport\n"); |
1241 | release_resource(r); | 1241 | release_and_free_resource(r); |
1242 | kfree_nocheck(r); | ||
1243 | return -ENOMEM; | 1242 | return -ENOMEM; |
1244 | } | 1243 | } |
1245 | 1244 | ||
@@ -1267,8 +1266,7 @@ static void snd_azf3328_free_joystick(azf3328_t *chip) | |||
1267 | /* disable gameport */ | 1266 | /* disable gameport */ |
1268 | snd_azf3328_io2_write(chip, IDX_IO2_LEGACY_ADDR, | 1267 | snd_azf3328_io2_write(chip, IDX_IO2_LEGACY_ADDR, |
1269 | snd_azf3328_io2_read(chip, IDX_IO2_LEGACY_ADDR) & ~LEGACY_JOY); | 1268 | snd_azf3328_io2_read(chip, IDX_IO2_LEGACY_ADDR) & ~LEGACY_JOY); |
1270 | release_resource(r); | 1269 | release_and_free_resource(r); |
1271 | kfree_nocheck(r); | ||
1272 | } | 1270 | } |
1273 | } | 1271 | } |
1274 | #else | 1272 | #else |