mmc: remove old card states
[firefly-linux-kernel-4.4.55.git] / drivers / mmc / core / sysfs.c
index bf9a5f8beb868dc9a4f48fec3a796fbd2b279132..843b1fbba55724f060074bfe070659b645eb4b76 100644 (file)
@@ -18,7 +18,7 @@
 #include <linux/mmc/card.h>
 #include <linux/mmc/host.h>
 
-#include "core.h"
+#include "sysfs.h"
 
 #define dev_to_mmc_card(d)     container_of(d, struct mmc_card, dev)
 #define to_mmc_driver(d)       container_of(d, struct mmc_driver, drv)
@@ -72,12 +72,11 @@ static void mmc_release_card(struct device *dev)
 /*
  * This currently matches any MMC driver to any MMC card - drivers
  * themselves make the decision whether to drive this card in their
- * probe method.  However, we force "bad" cards to fail.
+ * probe method.
  */
 static int mmc_bus_match(struct device *dev, struct device_driver *drv)
 {
-       struct mmc_card *card = dev_to_mmc_card(dev);
-       return !mmc_card_bad(card);
+       return 1;
 }
 
 static int