aboutsummaryrefslogtreecommitdiffstats
path: root/sound/drivers/mpu401/mpu401.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/drivers/mpu401/mpu401.c')
-rw-r--r--sound/drivers/mpu401/mpu401.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/drivers/mpu401/mpu401.c b/sound/drivers/mpu401/mpu401.c
index 77b06009735d..d3cbbb047582 100644
--- a/sound/drivers/mpu401/mpu401.c
+++ b/sound/drivers/mpu401/mpu401.c
@@ -253,6 +253,10 @@ static int __init alsa_card_mpu401_init(void)
253 i, NULL, 0); 253 i, NULL, 0);
254 if (IS_ERR(device)) 254 if (IS_ERR(device))
255 continue; 255 continue;
256 if (!platform_get_drvdata(device)) {
257 platform_device_unregister(device);
258 continue;
259 }
256 platform_devices[i] = device; 260 platform_devices[i] = device;
257 snd_mpu401_devices++; 261 snd_mpu401_devices++;
258 } 262 }