2013-03-20 09:16:05

by Geert Uytterhoeven

[permalink] [raw]
Subject: [PATCH] blackfin: twi: Remove bogus #endif

arch/blackfin/mach-bf538/boards/ezkit.c:768:2: error: #endif without #if

Introduced by commit cf93feb3a0dee97c7896016a352a3226139fbcf4 ("blackfin:
twi: Move TWI peripheral pin request array to platform data"), which
removed the #if, but forgot about the #endif.

Signed-off-by: Geert Uytterhoeven <[email protected]>
---
http://kisskb.ellerman.id.au/kisskb/buildresult/8427477/

arch/blackfin/mach-bf538/boards/ezkit.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/arch/blackfin/mach-bf538/boards/ezkit.c b/arch/blackfin/mach-bf538/boards/ezkit.c
index a4fce03..755f0dc 100644
--- a/arch/blackfin/mach-bf538/boards/ezkit.c
+++ b/arch/blackfin/mach-bf538/boards/ezkit.c
@@ -764,7 +764,6 @@ static struct platform_device i2c_bfin_twi1_device = {
.num_resources = ARRAY_SIZE(bfin_twi1_resource),
.resource = bfin_twi1_resource,
};
-#endif /* CONFIG_BF542 */
#endif /* CONFIG_I2C_BLACKFIN_TWI */

#if defined(CONFIG_KEYBOARD_GPIO) || defined(CONFIG_KEYBOARD_GPIO_MODULE)
--
1.7.0.4


2013-03-21 03:21:50

by Zhang, Sonic

[permalink] [raw]
Subject: RE: [PATCH] blackfin: twi: Remove bogus #endif

Acked-by: Sonic Zhang<[email protected]>

>-----Original Message-----
>From: Geert Uytterhoeven [mailto:[email protected]]
>Sent: Wednesday, March 20, 2013 5:16 PM
>To: Zhang, Sonic; Bob Liu
>Cc: [email protected]; [email protected]; Geert
>Uytterhoeven
>Subject: [PATCH] blackfin: twi: Remove bogus #endif
>
>arch/blackfin/mach-bf538/boards/ezkit.c:768:2: error: #endif without #if
>
>Introduced by commit cf93feb3a0dee97c7896016a352a3226139fbcf4 ("blackfin:
>twi: Move TWI peripheral pin request array to platform data"), which removed the
>#if, but forgot about the #endif.
>
>Signed-off-by: Geert Uytterhoeven <[email protected]>
>---
>http://kisskb.ellerman.id.au/kisskb/buildresult/8427477/
>
> arch/blackfin/mach-bf538/boards/ezkit.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
>diff --git a/arch/blackfin/mach-bf538/boards/ezkit.c b/arch/blackfin/mach-
>bf538/boards/ezkit.c
>index a4fce03..755f0dc 100644
>--- a/arch/blackfin/mach-bf538/boards/ezkit.c
>+++ b/arch/blackfin/mach-bf538/boards/ezkit.c
>@@ -764,7 +764,6 @@ static struct platform_device i2c_bfin_twi1_device = {
> .num_resources = ARRAY_SIZE(bfin_twi1_resource),
> .resource = bfin_twi1_resource,
> };
>-#endif /* CONFIG_BF542 */
> #endif /* CONFIG_I2C_BLACKFIN_TWI */
>
> #if defined(CONFIG_KEYBOARD_GPIO) ||
>defined(CONFIG_KEYBOARD_GPIO_MODULE)
>--
>1.7.0.4
>