aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-23 19:11:26 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-23 19:11:26 -0400
commit15a89dc83bad5c22a02bd292cf87d72dacb7dcb3 (patch)
treed738baaa95b771d8cd2bb6a62d75d0615a689b17
parentc46b8a6567fb6e0119cb22819aa65faf8d101a2f (diff)
Staging: line6: remove teardown code from module_exit path
These pcm values should all be stopped properly when the device is removed from the system (i.e. when disconnect is called), so there's no need to duplicate this when the module is unloaded as well. CC: Markus Grabner <grabner@icg.tugraz.at> CC: Stefan Hajnoczi <stefanha@gmail.com> CC: Julia Lawall <julia@diku.dk> CC: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/line6/driver.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/staging/line6/driver.c b/drivers/staging/line6/driver.c
index 351e8606db3d..c476fcc3acf8 100644
--- a/drivers/staging/line6/driver.c
+++ b/drivers/staging/line6/driver.c
@@ -1315,25 +1315,6 @@ static int __init line6_init(void)
1315*/ 1315*/
1316static void __exit line6_exit(void) 1316static void __exit line6_exit(void)
1317{ 1317{
1318 int i;
1319 struct usb_line6 *line6;
1320 struct snd_line6_pcm *line6pcm;
1321
1322 /* stop all PCM channels */
1323 for (i = LINE6_MAX_DEVICES; i--;) {
1324 line6 = line6_devices[i];
1325
1326 if (line6 == NULL)
1327 continue;
1328
1329 line6pcm = line6->line6pcm;
1330
1331 if (line6pcm == NULL)
1332 continue;
1333
1334 line6_pcm_release(line6pcm, ~0);
1335 }
1336
1337 usb_deregister(&line6_driver); 1318 usb_deregister(&line6_driver);
1338} 1319}
1339 1320