]> git.dujemihanovic.xyz Git - u-boot.git/commit
gpio: Disable functions not used with of-platdata
authorSimon Glass <sjg@chromium.org>
Fri, 5 Feb 2021 04:21:54 +0000 (21:21 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 3 Mar 2021 19:51:06 +0000 (14:51 -0500)
commit4fe406729c87f41b745269c0f509da7d27f0a5c1
treea8d8a5b5bcec65e399268b2094bf8680158cb4ad
parent5a9d8633e5e5f5253010480fb0db3742b0ea1356
gpio: Disable functions not used with of-platdata

These functions use devicetree and cannot work with of-platdata, which has
no runtime devicetree.

If they are used, the current linker error is confusing, since it talks
about missing functions in the bowels of driver model.

Avoid compiling these functions at all with of-platdata, so that a
straightforward link error points to the problem.

Series-changes; 3
- Fix 'wprl' typo

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
drivers/gpio/gpio-uclass.c