File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
arch/mips/alchemy/devboards Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,7 @@ static struct platform_device db1x00_audio_dev = {
164
164
165
165
/******************************************************************************/
166
166
167
+ #ifdef CONFIG_MMC_AU1X
167
168
static irqreturn_t db1100_mmc_cd (int irq , void * ptr )
168
169
{
169
170
mmc_detect_change (ptr , msecs_to_jiffies (500 ));
@@ -369,6 +370,7 @@ static struct platform_device db1100_mmc1_dev = {
369
370
.num_resources = ARRAY_SIZE (au1100_mmc1_res ),
370
371
.resource = au1100_mmc1_res ,
371
372
};
373
+ #endif /* CONFIG_MMC_AU1X */
372
374
373
375
/******************************************************************************/
374
376
@@ -440,8 +442,10 @@ static struct platform_device *db1x00_devs[] = {
440
442
441
443
static struct platform_device * db1100_devs [] = {
442
444
& au1100_lcd_device ,
445
+ #ifdef CONFIG_MMC_AU1X
443
446
& db1100_mmc0_dev ,
444
447
& db1100_mmc1_dev ,
448
+ #endif
445
449
};
446
450
447
451
int __init db1000_dev_setup (void )
Original file line number Diff line number Diff line change @@ -326,6 +326,7 @@ static struct platform_device db1200_ide_dev = {
326
326
327
327
/**********************************************************************/
328
328
329
+ #ifdef CONFIG_MMC_AU1X
329
330
/* SD carddetects: they're supposed to be edge-triggered, but ack
330
331
* doesn't seem to work (CPLD Rev 2). Instead, the screaming one
331
332
* is disabled and its counterpart enabled. The 200ms timeout is
@@ -584,6 +585,7 @@ static struct platform_device pb1200_mmc1_dev = {
584
585
.num_resources = ARRAY_SIZE (au1200_mmc1_res ),
585
586
.resource = au1200_mmc1_res ,
586
587
};
588
+ #endif /* CONFIG_MMC_AU1X */
587
589
588
590
/**********************************************************************/
589
591
@@ -751,7 +753,9 @@ static struct platform_device db1200_audiodma_dev = {
751
753
static struct platform_device * db1200_devs [] __initdata = {
752
754
NULL , /* PSC0, selected by S6.8 */
753
755
& db1200_ide_dev ,
756
+ #ifdef CONFIG_MMC_AU1X
754
757
& db1200_mmc0_dev ,
758
+ #endif
755
759
& au1200_lcd_dev ,
756
760
& db1200_eth_dev ,
757
761
& db1200_nand_dev ,
@@ -762,7 +766,9 @@ static struct platform_device *db1200_devs[] __initdata = {
762
766
};
763
767
764
768
static struct platform_device * pb1200_devs [] __initdata = {
769
+ #ifdef CONFIG_MMC_AU1X
765
770
& pb1200_mmc1_dev ,
771
+ #endif
766
772
};
767
773
768
774
/* Some peripheral base addresses differ on the PB1200 */
Original file line number Diff line number Diff line change @@ -450,6 +450,7 @@ static struct platform_device db1300_ide_dev = {
450
450
451
451
/**********************************************************************/
452
452
453
+ #ifdef CONFIG_MMC_AU1X
453
454
static irqreturn_t db1300_mmc_cd (int irq , void * ptr )
454
455
{
455
456
disable_irq_nosync (irq );
@@ -632,6 +633,7 @@ static struct platform_device db1300_sd0_dev = {
632
633
.resource = au1300_sd0_res ,
633
634
.num_resources = ARRAY_SIZE (au1300_sd0_res ),
634
635
};
636
+ #endif /* CONFIG_MMC_AU1X */
635
637
636
638
/**********************************************************************/
637
639
@@ -767,8 +769,10 @@ static struct platform_device *db1300_dev[] __initdata = {
767
769
& db1300_5waysw_dev ,
768
770
& db1300_nand_dev ,
769
771
& db1300_ide_dev ,
772
+ #ifdef CONFIG_MMC_AU1X
770
773
& db1300_sd0_dev ,
771
774
& db1300_sd1_dev ,
775
+ #endif
772
776
& db1300_lcd_dev ,
773
777
& db1300_ac97_dev ,
774
778
& db1300_i2s_dev ,
You can’t perform that action at this time.
0 commit comments