sound.c (2502991560dc8244dbe10e48473d85722c1e2ec1) | sound.c (abe9ab8f62203ced11119fb96acc3b8dd107ebc4) |
---|---|
1/* 2 * Advanced Linux Sound Architecture 3 * Copyright (c) by Jaroslav Kysela <perex@perex.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 --- 260 unchanged lines hidden (view full) --- 269 minor = -EBUSY; 270#endif 271 if (minor < 0) { 272 mutex_unlock(&sound_mutex); 273 kfree(preg); 274 return minor; 275 } 276 snd_minors[minor] = preg; | 1/* 2 * Advanced Linux Sound Architecture 3 * Copyright (c) by Jaroslav Kysela <perex@perex.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 --- 260 unchanged lines hidden (view full) --- 269 minor = -EBUSY; 270#endif 271 if (minor < 0) { 272 mutex_unlock(&sound_mutex); 273 kfree(preg); 274 return minor; 275 } 276 snd_minors[minor] = preg; |
277 preg->dev = device_create_drvdata(sound_class, device, 278 MKDEV(major, minor), 279 private_data, "%s", name); | 277 preg->dev = device_create(sound_class, device, MKDEV(major, minor), 278 private_data, "%s", name); |
280 if (IS_ERR(preg->dev)) { 281 snd_minors[minor] = NULL; 282 mutex_unlock(&sound_mutex); 283 minor = PTR_ERR(preg->dev); 284 kfree(preg); 285 return minor; 286 } 287 --- 182 unchanged lines hidden --- | 279 if (IS_ERR(preg->dev)) { 280 snd_minors[minor] = NULL; 281 mutex_unlock(&sound_mutex); 282 minor = PTR_ERR(preg->dev); 283 kfree(preg); 284 return minor; 285 } 286 --- 182 unchanged lines hidden --- |