diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-02 17:33:37 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-02 17:33:37 -0400 |
commit | eb1574270a6de8fb8d31ffc3b021e30df0afcda3 (patch) | |
tree | d154ba369f222f5108ed1a2462d815d7faadc2e5 /sound/oss/msnd_pinnacle.c | |
parent | aac10aaa8cc65a6fef6f5bc7d0b96035b0225a61 (diff) | |
parent | 69964ea4c7b68c9399f7977aa5b9aa6539a6a98a (diff) |
Merge 3.4-rc5 into driver-core-next
This was done to resolve a merge issue with the init/main.c file.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/oss/msnd_pinnacle.c')
-rw-r--r-- | sound/oss/msnd_pinnacle.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sound/oss/msnd_pinnacle.c b/sound/oss/msnd_pinnacle.c index 2c79d60a725f..536c4c0514d3 100644 --- a/sound/oss/msnd_pinnacle.c +++ b/sound/oss/msnd_pinnacle.c | |||
@@ -1294,6 +1294,8 @@ static int __init calibrate_adc(WORD srate) | |||
1294 | 1294 | ||
1295 | static int upload_dsp_code(void) | 1295 | static int upload_dsp_code(void) |
1296 | { | 1296 | { |
1297 | int ret = 0; | ||
1298 | |||
1297 | msnd_outb(HPBLKSEL_0, dev.io + HP_BLKS); | 1299 | msnd_outb(HPBLKSEL_0, dev.io + HP_BLKS); |
1298 | #ifndef HAVE_DSPCODEH | 1300 | #ifndef HAVE_DSPCODEH |
1299 | INITCODESIZE = mod_firmware_load(INITCODEFILE, &INITCODE); | 1301 | INITCODESIZE = mod_firmware_load(INITCODEFILE, &INITCODE); |
@@ -1312,7 +1314,8 @@ static int upload_dsp_code(void) | |||
1312 | memcpy_toio(dev.base, PERMCODE, PERMCODESIZE); | 1314 | memcpy_toio(dev.base, PERMCODE, PERMCODESIZE); |
1313 | if (msnd_upload_host(&dev, INITCODE, INITCODESIZE) < 0) { | 1315 | if (msnd_upload_host(&dev, INITCODE, INITCODESIZE) < 0) { |
1314 | printk(KERN_WARNING LOGNAME ": Error uploading to DSP\n"); | 1316 | printk(KERN_WARNING LOGNAME ": Error uploading to DSP\n"); |
1315 | return -ENODEV; | 1317 | ret = -ENODEV; |
1318 | goto out; | ||
1316 | } | 1319 | } |
1317 | #ifdef HAVE_DSPCODEH | 1320 | #ifdef HAVE_DSPCODEH |
1318 | printk(KERN_INFO LOGNAME ": DSP firmware uploaded (resident)\n"); | 1321 | printk(KERN_INFO LOGNAME ": DSP firmware uploaded (resident)\n"); |
@@ -1320,12 +1323,13 @@ static int upload_dsp_code(void) | |||
1320 | printk(KERN_INFO LOGNAME ": DSP firmware uploaded\n"); | 1323 | printk(KERN_INFO LOGNAME ": DSP firmware uploaded\n"); |
1321 | #endif | 1324 | #endif |
1322 | 1325 | ||
1326 | out: | ||
1323 | #ifndef HAVE_DSPCODEH | 1327 | #ifndef HAVE_DSPCODEH |
1324 | vfree(INITCODE); | 1328 | vfree(INITCODE); |
1325 | vfree(PERMCODE); | 1329 | vfree(PERMCODE); |
1326 | #endif | 1330 | #endif |
1327 | 1331 | ||
1328 | return 0; | 1332 | return ret; |
1329 | } | 1333 | } |
1330 | 1334 | ||
1331 | #ifdef MSND_CLASSIC | 1335 | #ifdef MSND_CLASSIC |