diff options
Diffstat (limited to 'sound/isa/sb/emu8000.c')
-rw-r--r-- | sound/isa/sb/emu8000.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/sound/isa/sb/emu8000.c b/sound/isa/sb/emu8000.c index 5375705c054b..95540f133199 100644 --- a/sound/isa/sb/emu8000.c +++ b/sound/isa/sb/emu8000.c | |||
@@ -1054,18 +1054,9 @@ __error: | |||
1054 | */ | 1054 | */ |
1055 | static int snd_emu8000_free(emu8000_t *hw) | 1055 | static int snd_emu8000_free(emu8000_t *hw) |
1056 | { | 1056 | { |
1057 | if (hw->res_port1) { | 1057 | release_and_free_resource(hw->res_port1); |
1058 | release_resource(hw->res_port1); | 1058 | release_and_free_resource(hw->res_port2); |
1059 | kfree_nocheck(hw->res_port1); | 1059 | release_and_free_resource(hw->res_port3); |
1060 | } | ||
1061 | if (hw->res_port2) { | ||
1062 | release_resource(hw->res_port2); | ||
1063 | kfree_nocheck(hw->res_port2); | ||
1064 | } | ||
1065 | if (hw->res_port3) { | ||
1066 | release_resource(hw->res_port3); | ||
1067 | kfree_nocheck(hw->res_port3); | ||
1068 | } | ||
1069 | kfree(hw); | 1060 | kfree(hw); |
1070 | return 0; | 1061 | return 0; |
1071 | } | 1062 | } |