aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mmc/card/mmc_test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/card/mmc_test.c b/drivers/mmc/card/mmc_test.c
index 371d922d9ee2..8e0bb12d048d 100644
--- a/drivers/mmc/card/mmc_test.c
+++ b/drivers/mmc/card/mmc_test.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * linux/drivers/mmc/card/mmc_test.c 2 * linux/drivers/mmc/card/mmc_test.c
3 * 3 *
4 * Copyright 2007 Pierre Ossman 4 * Copyright 2007-2008 Pierre Ossman
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify 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 7 * it under the terms of the GNU General Public License as published by
@@ -858,6 +858,9 @@ static int mmc_test_probe(struct mmc_card *card)
858{ 858{
859 int ret; 859 int ret;
860 860
861 if ((card->type != MMC_TYPE_MMC) && (card->type != MMC_TYPE_SD))
862 return -ENODEV;
863
861 mutex_init(&mmc_test_lock); 864 mutex_init(&mmc_test_lock);
862 865
863 ret = device_create_file(&card->dev, &dev_attr_test); 866 ret = device_create_file(&card->dev, &dev_attr_test);