From: Simon Glass <sjg@chromium.org>
Date: Wed, 23 Jul 2014 12:54:56 +0000 (-0600)
Subject: dm: gpio: Don't use the driver model uclass for SPL
X-Git-Tag: v2025.01-rc5-pxa1908~14986
X-Git-Url: http://git.dujemihanovic.xyz/img/static/html/index.html?a=commitdiff_plain;h=5b9765c7d689166899918d49e4884e9b8c51a8ae;p=u-boot.git

dm: gpio: Don't use the driver model uclass for SPL

Driver model does not support SPL yet, so we should not use the GPIO
uclass for SPL.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile
index 4e001e12bd..fb8dcd916b 100644
--- a/drivers/gpio/Makefile
+++ b/drivers/gpio/Makefile
@@ -5,7 +5,9 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
+ifndef CONFIG_SPL_BUILD
 obj-$(CONFIG_DM_GPIO)		+= gpio-uclass.o
+endif
 
 obj-$(CONFIG_AT91_GPIO)	+= at91_gpio.o
 obj-$(CONFIG_INTEL_ICH6_GPIO)	+= intel_ich6_gpio.o