| @@ -38,7 +38,7 @@ static struct platform_device rtc_device = { · 37 unmodified lines |
| 38 | 38 | .name = "rtc-bfin", |
| 39 | 39 | .id = -1, |
| 40 | 40 | }; |
| 41 | | −#endif |
| 41 | +#endif /* CONFIG_RTC_DRV_BFIN */ |
| 42 | 42 | |
| 43 | 43 | #if defined(CONFIG_SERIAL_BFIN) || defined(CONFIG_SERIAL_BFIN_MODULE) |
| 44 | 44 | #ifdef CONFIG_SERIAL_BFIN_UART0 |
| @@ -100,7 +100,7 @@ static struct platform_device bfin_uart0_device = { · 55 unmodified lines |
| 100 | 100 | .platform_data = &bfin_uart0_peripherals, /* Passed to driver */ |
| 101 | 101 | }, |
| 102 | 102 | }; |
| 103 | | −#endif |
| 103 | +#endif /* CONFIG_SERIAL_BFIN_UART0 */ |
| 104 | 104 | #ifdef CONFIG_SERIAL_BFIN_UART1 |
| 105 | 105 | static struct resource bfin_uart1_resources[] = { |
| 106 | 106 | { |
| @@ -148,7 +148,7 @@ static struct platform_device bfin_uart1_device = { · 41 unmodified lines |
| 148 | 148 | .platform_data = &bfin_uart1_peripherals, /* Passed to driver */ |
| 149 | 149 | }, |
| 150 | 150 | }; |
| 151 | | −#endif |
| 151 | +#endif /* CONFIG_SERIAL_BFIN_UART1 */ |
| 152 | 152 | #ifdef CONFIG_SERIAL_BFIN_UART2 |
| 153 | 153 | static struct resource bfin_uart2_resources[] = { |
| 154 | 154 | { |
| @@ -196,8 +196,8 @@ static struct platform_device bfin_uart2_device = { · 41 unmodified lines |
| 196 | 196 | .platform_data = &bfin_uart2_peripherals, /* Passed to driver */ |
| 197 | 197 | }, |
| 198 | 198 | }; |
| 199 | | −#endif |
| 200 | | −#endif |
| 199 | +#endif /* CONFIG_SERIAL_BFIN_UART2 */ |
| 200 | +#endif /* CONFIG_SERIAL_BFIN */ |
| 201 | 201 | |
| 202 | 202 | #if defined(CONFIG_BFIN_SIR) || defined(CONFIG_BFIN_SIR_MODULE) |
| 203 | 203 | #ifdef CONFIG_BFIN_SIR0 |
| @@ -224,7 +224,7 @@ static struct platform_device bfin_sir0_device = { · 20 unmodified lines |
| 224 | 224 | .num_resources = ARRAY_SIZE(bfin_sir0_resources), |
| 225 | 225 | .resource = bfin_sir0_resources, |
| 226 | 226 | }; |
| 227 | | −#endif |
| 227 | +#endif /* CONFIG_BFIN_SIR0 */ |
| 228 | 228 | #ifdef CONFIG_BFIN_SIR1 |
| 229 | 229 | static struct resource bfin_sir1_resources[] = { |
| 230 | 230 | { |
| @@ -249,7 +249,7 @@ static struct platform_device bfin_sir1_device = { · 18 unmodified lines |
| 249 | 249 | .num_resources = ARRAY_SIZE(bfin_sir1_resources), |
| 250 | 250 | .resource = bfin_sir1_resources, |
| 251 | 251 | }; |
| 252 | | −#endif |
| 252 | +#endif /* CONFIG_BFIN_SIR1 */ |
| 253 | 253 | #ifdef CONFIG_BFIN_SIR2 |
| 254 | 254 | static struct resource bfin_sir2_resources[] = { |
| 255 | 255 | { |
| @@ -274,8 +274,8 @@ static struct platform_device bfin_sir2_device = { · 18 unmodified lines |
| 274 | 274 | .num_resources = ARRAY_SIZE(bfin_sir2_resources), |
| 275 | 275 | .resource = bfin_sir2_resources, |
| 276 | 276 | }; |
| 277 | | −#endif |
| 278 | | −#endif |
| 277 | +#endif /* CONFIG_BFIN_SIR2 */ |
| 278 | +#endif /* CONFIG_BFIN_SIR */ |
| 279 | 279 | |
| 280 | 280 | #if defined(CONFIG_SERIAL_BFIN_SPORT) || defined(CONFIG_SERIAL_BFIN_SPORT_MODULE) |
| 281 | 281 | #ifdef CONFIG_SERIAL_BFIN_SPORT0_UART |
| @@ -311,7 +311,7 @@ static struct platform_device bfin_sport0_uart_device = { · 29 unmodified lines |
| 311 | 311 | .platform_data = &bfin_sport0_peripherals, /* Passed to driver */ |
| 312 | 312 | }, |
| 313 | 313 | }; |
| 314 | | −#endif |
| 314 | +#endif /* CONFIG_SERIAL_BFIN_SPORT0_UART */ |
| 315 | 315 | #ifdef CONFIG_SERIAL_BFIN_SPORT1_UART |
| 316 | 316 | static struct resource bfin_sport1_uart_resources[] = { |
| 317 | 317 | { |
| @@ -345,7 +345,7 @@ static struct platform_device bfin_sport1_uart_device = { · 27 unmodified lines |
| 345 | 345 | .platform_data = &bfin_sport1_peripherals, /* Passed to driver */ |
| 346 | 346 | }, |
| 347 | 347 | }; |
| 348 | | −#endif |
| 348 | +#endif /* CONFIG_SERIAL_BFIN_SPORT1_UART */ |
| 349 | 349 | #ifdef CONFIG_SERIAL_BFIN_SPORT2_UART |
| 350 | 350 | static struct resource bfin_sport2_uart_resources[] = { |
| 351 | 351 | { |
| @@ -379,7 +379,7 @@ static struct platform_device bfin_sport2_uart_device = { · 27 unmodified lines |
| 379 | 379 | .platform_data = &bfin_sport2_peripherals, /* Passed to driver */ |
| 380 | 380 | }, |
| 381 | 381 | }; |
| 382 | | −#endif |
| 382 | +#endif /* CONFIG_SERIAL_BFIN_SPORT2_UART */ |
| 383 | 383 | #ifdef CONFIG_SERIAL_BFIN_SPORT3_UART |
| 384 | 384 | static struct resource bfin_sport3_uart_resources[] = { |
| 385 | 385 | { |
| @@ -413,8 +413,8 @@ static struct platform_device bfin_sport3_uart_device = { · 27 unmodified lines |
| 413 | 413 | .platform_data = &bfin_sport3_peripherals, /* Passed to driver */ |
| 414 | 414 | }, |
| 415 | 415 | }; |
| 416 | | −#endif |
| 417 | | −#endif |
| 416 | +#endif /* CONFIG_SERIAL_BFIN_SPORT3_UART */ |
| 417 | +#endif /* CONFIG_SERIAL_BFIN_SPORT */ |
| 418 | 418 | |
| 419 | 419 | #if defined(CONFIG_CAN_BFIN) || defined(CONFIG_CAN_BFIN_MODULE) |
| 420 | 420 | static unsigned short bfin_can_peripherals[] = { |
| @@ -452,7 +452,7 @@ static struct platform_device bfin_can_device = { · 31 unmodified lines |
| 452 | 452 | .platform_data = &bfin_can_peripherals, /* Passed to driver */ |
| 453 | 453 | }, |
| 454 | 454 | }; |
| 455 | | −#endif |
| 455 | +#endif /* CONFIG_CAN_BFIN */ |
| 456 | 456 | |
| 457 | 457 | /* |
| 458 | 458 | * USB-LAN EzExtender board |
| @@ -488,7 +488,7 @@ static struct platform_device smc91x_device = { · 29 unmodified lines |
| 488 | 488 | .platform_data = &smc91x_info, |
| 489 | 489 | }, |
| 490 | 490 | }; |
| 491 | | −#endif |
| 491 | +#endif /* CONFIG_SMC91X */ |
| 492 | 492 | |
| 493 | 493 | #if defined(CONFIG_SPI_BFIN5XX) || defined(CONFIG_SPI_BFIN5XX_MODULE) |
| 494 | 494 | /* all SPI peripherals info goes here */ |
| @@ -518,7 +518,8 @@ static struct flash_platform_data bfin_spi_flash_data = { · 23 unmodified lines |
| 518 | 518 | static struct bfin5xx_spi_chip spi_flash_chip_info = { |
| 519 | 519 | .enable_dma = 0, /* use dma transfer with this chip*/ |
| 520 | 520 | }; |
| 521 | | −#endif |
| 521 | +#endif /* CONFIG_MTD_M25P80 */ |
| 522 | +#endif /* CONFIG_SPI_BFIN5XX */ |
| 522 | 523 | |
| 523 | 524 | #if defined(CONFIG_TOUCHSCREEN_AD7879) || defined(CONFIG_TOUCHSCREEN_AD7879_MODULE) |
| 524 | 525 | #include <linux/spi/ad7879.h> |
| @@ -535,7 +536,7 @@ static const struct ad7879_platform_data bfin_ad7879_ts_info = { · 10 unmodified lines |
| 535 | 536 | .gpio_export = 1, /* Export GPIO to gpiolib */ |
| 536 | 537 | .gpio_base = -1, /* Dynamic allocation */ |
| 537 | 538 | }; |
| 538 | | −#endif |
| 539 | +#endif /* CONFIG_TOUCHSCREEN_AD7879 */ |
| 539 | 540 | |
| 540 | 541 | #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) |
| 541 | 542 | #include <asm/bfin-lq035q1.h> |
| @@ -564,7 +565,7 @@ static struct platform_device bfin_lq035q1_device = { · 22 unmodified lines |
| 564 | 565 | .platform_data = &bfin_lq035q1_data, |
| 565 | 566 | }, |
| 566 | 567 | }; |
| 567 | | −#endif |
| 568 | +#endif /* CONFIG_FB_BFIN_LQ035Q1 */ |
| 568 | 569 | |
| 569 | 570 | static struct spi_board_info bf538_spi_board_info[] __initdata = { |
| 570 | 571 | #if defined(CONFIG_MTD_M25P80) \ |
| @@ -579,7 +580,7 @@ static struct spi_board_info bf538_spi_board_info[] __initdata = { · 8 unmodified lines |
| 579 | 580 | .controller_data = &spi_flash_chip_info, |
| 580 | 581 | .mode = SPI_MODE_3, |
| 581 | 582 | }, |
| 582 | | −#endif |
| 583 | +#endif /* CONFIG_MTD_M25P80 */ |
| 583 | 584 | #if defined(CONFIG_TOUCHSCREEN_AD7879_SPI) || defined(CONFIG_TOUCHSCREEN_AD7879_SPI_MODULE) |
| 584 | 585 | { |
| 585 | 586 | .modalias = "ad7879", |
| @@ -590,7 +591,7 @@ static struct spi_board_info bf538_spi_board_info[] __initdata = { · 4 unmodified lines |
| 590 | 591 | .chip_select = 1, |
| 591 | 592 | .mode = SPI_CPHA | SPI_CPOL, |
| 592 | 593 | }, |
| 593 | | −#endif |
| 594 | +#endif /* CONFIG_TOUCHSCREEN_AD7879_SPI */ |
| 594 | 595 | #if defined(CONFIG_FB_BFIN_LQ035Q1) || defined(CONFIG_FB_BFIN_LQ035Q1_MODULE) |
| 595 | 596 | { |
| 596 | 597 | .modalias = "bfin-lq035q1-spi", |
| @@ -599,7 +600,7 @@ static struct spi_board_info bf538_spi_board_info[] __initdata = { · 2 unmodified lines |
| 599 | 600 | .chip_select = 2, |
| 600 | 601 | .mode = SPI_CPHA | SPI_CPOL, |
| 601 | 602 | }, |
| 602 | | −#endif |
| 603 | +#endif /* CONFIG_FB_BFIN_LQ035Q1 */ |
| 603 | 604 | #if defined(CONFIG_SPI_SPIDEV) || defined(CONFIG_SPI_SPIDEV_MODULE) |
| 604 | 605 | { |
| 605 | 606 | .modalias = "spidev", |
| @@ -607,7 +608,7 @@ static struct spi_board_info bf538_spi_board_info[] __initdata = { · 1 unmodified line |
| 607 | 608 | .bus_num = 0, |
| 608 | 609 | .chip_select = 1, |
| 609 | 610 | }, |
| 610 | | −#endif |
| 611 | +#endif /* CONFIG_SPI_SPIDEV */ |
| 611 | 612 | }; |
| 612 | 613 | |
| 613 | 614 | /* SPI (0) */ |
| @@ -716,8 +717,6 @@ static struct platform_device bf538_spi_master2 = { · 102 unmodified lines |
| 716 | 717 | }, |
| 717 | 718 | }; |
| 718 | 719 | |
| 719 | | −#endif /* spi master and devices */ |
| 720 | | − |
| 721 | 720 | #if defined(CONFIG_I2C_BLACKFIN_TWI) || defined(CONFIG_I2C_BLACKFIN_TWI_MODULE) |
| 722 | 721 | static struct resource bfin_twi0_resource[] = { |
| 723 | 722 | [0] = { |
| @@ -759,8 +758,8 @@ static struct platform_device i2c_bfin_twi1_device = { · 35 unmodified lines |
| 759 | 758 | .num_resources = ARRAY_SIZE(bfin_twi1_resource), |
| 760 | 759 | .resource = bfin_twi1_resource, |
| 761 | 760 | }; |
| 762 | | −#endif |
| 763 | | −#endif |
| 761 | +#endif /* CONFIG_BF542 */ |
| 762 | +#endif /* CONFIG_I2C_BLACKFIN_TWI */ |
| 764 | 763 | |
| 765 | 764 | #if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE) |
| 766 | 765 | #include <linux/gpio_keys.h> |