]> git.dujemihanovic.xyz Git - u-boot.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)
commit99571b41c6c21ccd3737971a51727e6f4d89126d
treee26aa27d535a20f9e629851aec498ddbe8d4fa56
parent410c505cc145d570662ef0f841a942e650f8b1df
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