git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[MIPS] Use ARRAY_SIZE macro when appropriate
[sfrench/cifs-2.6.git]
/
sound
/
drivers
/
virmidi.c
diff --git
a/sound/drivers/virmidi.c
b/sound/drivers/virmidi.c
index 26eb2499d442667e18ff3229f07551e73606bea1..59171f8200dfb8fd1dd957e5bb37dd273d292b79 100644
(file)
--- a/
sound/drivers/virmidi.c
+++ b/
sound/drivers/virmidi.c
@@
-171,6
+171,10
@@
static int __init alsa_card_virmidi_init(void)
i, NULL, 0);
if (IS_ERR(device))
continue;
+ if (!platform_get_drvdata(device)) {
+ platform_device_unregister(device);
+ continue;
+ }
devices[i] = device;
cards++;
}