2010-06-30 15:58:52

by Christoph Egger

[permalink] [raw]
Subject: [PATCH 15/33] Removing dead PROCESSOR_NS9750

PROCESSOR_NS9750 doesn't exist in Kconfig, therefore removing all
references for it from the source code.

Signed-off-by: Christoph Egger <[email protected]>
---
arch/arm/mach-ns9xxx/gpio.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/arch/arm/mach-ns9xxx/gpio.c b/arch/arm/mach-ns9xxx/gpio.c
index 5503ca0..58f4f50 100644
--- a/arch/arm/mach-ns9xxx/gpio.c
+++ b/arch/arm/mach-ns9xxx/gpio.c
@@ -25,9 +25,6 @@

#if defined(CONFIG_PROCESSOR_NS9360)
#define GPIO_MAX 72
-#elif defined(CONFIG_PROCESSOR_NS9750)
-#define GPIO_MAX 49
-#endif

/* protects BBU_GCONFx and BBU_GCTRLx */
static spinlock_t gpio_lock = __SPIN_LOCK_UNLOCKED(gpio_lock);
@@ -42,11 +39,6 @@ static inline int ns9xxx_valid_gpio(unsigned gpio)
return gpio <= 72;
else
#endif
-#if defined(CONFIG_PROCESSOR_NS9750)
- if (processor_is_ns9750())
- return gpio <= 49;
- else
-#endif
{
BUG();
return 0;
--
1.7.0.4


2010-07-05 07:16:01

by Uwe Kleine-König

[permalink] [raw]
Subject: Re: [PATCH 15/33] Removing dead PROCESSOR_NS9750

On Wed, Jun 30, 2010 at 05:58:48PM +0200, Christoph Egger wrote:
> PROCESSOR_NS9750 doesn't exist in Kconfig, therefore removing all
> references for it from the source code.
>
> Signed-off-by: Christoph Egger <[email protected]>
> ---
> arch/arm/mach-ns9xxx/gpio.c | 8 --------
> 1 files changed, 0 insertions(+), 8 deletions(-)
>
> diff --git a/arch/arm/mach-ns9xxx/gpio.c b/arch/arm/mach-ns9xxx/gpio.c
> index 5503ca0..58f4f50 100644
> --- a/arch/arm/mach-ns9xxx/gpio.c
> +++ b/arch/arm/mach-ns9xxx/gpio.c
> @@ -25,9 +25,6 @@
>
> #if defined(CONFIG_PROCESSOR_NS9360)
> #define GPIO_MAX 72
> -#elif defined(CONFIG_PROCESSOR_NS9750)
> -#define GPIO_MAX 49
> -#endif
>
> /* protects BBU_GCONFx and BBU_GCTRLx */
> static spinlock_t gpio_lock = __SPIN_LOCK_UNLOCKED(gpio_lock);
> @@ -42,11 +39,6 @@ static inline int ns9xxx_valid_gpio(unsigned gpio)
> return gpio <= 72;
> else
> #endif
> -#if defined(CONFIG_PROCESSOR_NS9750)
> - if (processor_is_ns9750())
> - return gpio <= 49;
> - else
> -#endif
> {
> BUG();
> return 0;
The code is correct as is, but AFAIK the ns9750 isn't supported anymore
even in the Digi provided BSPs and as it seems there aren't any efforts
to maintain ns9xxx in mainline.

So, Acked-by: Uwe Kleine-K?nig <[email protected]>

Best regards
Uwe

--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |