git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Bluetooth] Add support for newer ANYCOM USB dongles
[pandora-kernel.git]
/
sound
/
drivers
/
virmidi.c
diff --git
a/sound/drivers/virmidi.c
b/sound/drivers/virmidi.c
index
26eb249
..
59171f8
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;
i, NULL, 0);
if (IS_ERR(device))
continue;
+ if (!platform_get_drvdata(device)) {
+ platform_device_unregister(device);
+ continue;
+ }
devices[i] = device;
cards++;
}
devices[i] = device;
cards++;
}