]> git.baikalelectronics.ru Git - uboot.git/commit
DM: omap_gpio: Reduce overhead when used with OF_PLATDATA
authorAdam Ford <aford173@gmail.com>
Tue, 21 Aug 2018 01:27:48 +0000 (20:27 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 12 Sep 2018 01:38:52 +0000 (21:38 -0400)
commit9c82a6753e5a2416491d7de7095260753163b8c5
treee26aa27d535a20f9e629851aec498ddbe8d4fa56
parenta61e6b5203c2ab4dcaab6afc5f897ff8ac4e62ec
DM: omap_gpio: Reduce overhead when used with OF_PLATDATA

Platforms with limited resources in SPL may enable OF_PLATDATA,
this limits some of the library functions and cannot extract data
from the device tree.  This patch adds additional wrappers around
these functions to only allow them when OF_CONTROL is enabled and
OF_PLATDATA is not.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/gpio/omap_gpio.c