arm: omap3: Manually initialize GPIO if OF_CONTROL doesn't
authorAdam Ford <aford173@gmail.com>
Wed, 29 May 2019 20:42:53 +0000 (15:42 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 5 Jun 2019 16:14:02 +0000 (12:14 -0400)
commit33ac2b560b58dd71d485618f70768e5c2d47c678
tree7c1d486b02040186d3477c36bc1f0b5f7263d481
parente3b7ff247698fb02c4790d6126c01851791f69b4
arm: omap3: Manually initialize GPIO if OF_CONTROL doesn't

The commong initialization code manually initializes the GPIO
even when OF_CONTROL does it, so we can reduce the code size a
bit by not doing it manually when we have device tree support.

Using the omap3_logic board (dm3730), the sizes shrunk:

Before:

   text    data     bss     dec     hex filename
 561066   28596  116880  706542   ac7ee u-boot
  55245    1605    1888   58738    e572 spl/u-boot-spl

After
  text    data     bss     dec     hex filename
 560898   28548  116872  706318   ac70e u-boot
  55121    1557    1888   58566    e4c6 spl/u-boot-spl

Signed-off-by: Adam Ford <aford173@gmail.com>
arch/arm/mach-omap2/omap3/board.c