[Bluetooth] Add support for newer ANYCOM USB dongles
[pandora-kernel.git] / sound / drivers / virmidi.c
index 26eb249..59171f8 100644 (file)
@@ -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++;
        }