init.c (11ed56fb7899f9eb9eaef8e5919db1bf08f1b07e) | init.c (99ac48f54a91d02140c497edc31dc57d4bc5c85d) |
---|---|
1/* 2 * Initialization routines 3 * Copyright (c) by Jaroslav Kysela <perex@suse.cz> 4 * 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 209 unchanged lines hidden (view full) --- 218 * Note: The current implementation replaces all active file->f_op with special 219 * dummy file operations (they do nothing except release). 220 */ 221int snd_card_disconnect(struct snd_card *card) 222{ 223 struct snd_monitor_file *mfile; 224 struct file *file; 225 struct snd_shutdown_f_ops *s_f_ops; | 1/* 2 * Initialization routines 3 * Copyright (c) by Jaroslav Kysela <perex@suse.cz> 4 * 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 209 unchanged lines hidden (view full) --- 218 * Note: The current implementation replaces all active file->f_op with special 219 * dummy file operations (they do nothing except release). 220 */ 221int snd_card_disconnect(struct snd_card *card) 222{ 223 struct snd_monitor_file *mfile; 224 struct file *file; 225 struct snd_shutdown_f_ops *s_f_ops; |
226 struct file_operations *f_ops, *old_f_ops; | 226 struct file_operations *f_ops; 227 const struct file_operations *old_f_ops; |
227 int err; 228 229 spin_lock(&card->files_lock); 230 if (card->shutdown) { 231 spin_unlock(&card->files_lock); 232 return 0; 233 } 234 card->shutdown = 1; --- 528 unchanged lines hidden --- | 228 int err; 229 230 spin_lock(&card->files_lock); 231 if (card->shutdown) { 232 spin_unlock(&card->files_lock); 233 return 0; 234 } 235 card->shutdown = 1; --- 528 unchanged lines hidden --- |