Skip to content

Commit 8a8d4ac

Browse files
JanLucapopcornmix
authored andcommitted
MMC: Do not use mmc_debug if CONFIG_MMC_BCM2835 is not set
If CONFIG_MMC_BCM2835 was not set the compiling of the kernel failed since mmc_debug was not defined but used in drivers/mmc/core/quirks.c. This patch add a ifdef-check for CONFIG_MMC_BCM2835 to the change of commit 64d3954
1 parent e06d5b1 commit 8a8d4ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/mmc/core/quirks.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ static const struct mmc_fixup mmc_fixup_methods[] = {
5353

5454
void mmc_fixup_device(struct mmc_card *card, const struct mmc_fixup *table)
5555
{
56+
#ifdef CONFIG_MMC_BCM2835
5657
extern unsigned mmc_debug;
58+
#endif
5759
const struct mmc_fixup *f;
5860
u64 rev = cid_rev_card(card);
5961

@@ -81,7 +83,9 @@ void mmc_fixup_device(struct mmc_card *card, const struct mmc_fixup *table)
8183
/* SDHCI on BCM2708 - bug causes a certain sequence of CMD23 operations to fail.
8284
* Disable this flag for all cards (fall-back to CMD25/CMD18 multi-block transfers).
8385
*/
86+
#ifdef CONFIG_MMC_BCM2835
8487
if (mmc_debug & (1<<13))
8588
card->quirks |= MMC_QUIRK_BLK_NO_CMD23;
89+
#endif
8690
}
8791
EXPORT_SYMBOL(mmc_fixup_device);

0 commit comments

Comments
 (0)