arm: s5j: remove up_gpioinitialize()
authorHeesub Shin <heesub.shin@samsung.com>
Sun, 9 Apr 2017 10:07:11 +0000 (19:07 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:12 +0000 (12:02 +0900)
up_gpioinitialize() was invented while we were working on the BSP for
BCM4390x. Its purpose was for initializing GPIO ports and registering
device nodes for them during the boot sequence, but it was a bad idea.
Available GPIO ports may varies from device to device. This means that
exporting which GPIO ports should be decided at board initialization,
not OS or chip initialization. Having up_gpioinitialize() at the
chip-specific layer is breaking the OS design.

This is why up_gpioinitialize() had been left abandoned for a long time
and finally become an empty function. It is time to remove it
completely. This commit does not make any functional differences.

Change-Id: I0217b377050613502933f4b6ba7b8024ff9937f1
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
os/arch/arm/src/common/up_initialize.c
os/arch/arm/src/common/up_internal.h
os/arch/arm/src/s5j/s5j_gpio.c

index 2ad6070..0832644 100644 (file)
@@ -268,9 +268,4 @@ void up_initialize(void)
 
        up_l2ccinitialize();
        board_led_on(LED_IRQSENABLED);
-
-#ifdef CONFIG_GPIO
-       /* Initialize GPIO */
-       up_gpioinitialize();
-#endif
 }
index ac43478..812aad8 100644 (file)
@@ -553,13 +553,6 @@ void up_usbuninitialize(void);
 void up_rnginitialize(void);
 #endif
 
-/* GPIO  ********************************************************************/
-#ifdef CONFIG_GPIO
-void up_gpioinitialize(void);
-#else
-#define up_gpioinitialize()
-#endif
-
 /* Debug ********************************************************************/
 #ifdef CONFIG_STACK_COLORATION
 void up_stack_color(FAR void *stackbase, size_t nbytes);
index 1f17be1..7512034 100644 (file)
@@ -1753,26 +1753,6 @@ int up_create_gpio(int32_t idx)
 #endif
 }
 
-
-/****************************************************************************
- * Name: up_gpioinitialize 
- *
- * Description:
- *  Dummy function. Real function s5j_gpioinitialize, where GPIOs are exposed, 
- *  called from board_init().
- *
- * Input Parameters:
- *   None
- *
- * Returned Value:
- *   None
- *
- ****************************************************************************/
-void up_gpioinitialize(void)
-{
-
-}
-
 /****************************************************************************
  * Name: up_destroy_gpio 
  *