From: Rui Miguel Silva <rui.silva@linaro.org>
Date: Thu, 8 Sep 2016 16:17:51 +0000 (+0100)
Subject: staging: greybus: makefile: fix dependency of spi to spilib
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b04f56c6e7ccdc7d09ccd20f28bb4d34a1603ebb;p=linux.git

staging: greybus: makefile: fix dependency of spi to spilib

Greybus SPI driver depends on gb-spilib and we need to state that at
makefile to make it link correctly.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
---

diff --git a/drivers/staging/greybus/Makefile b/drivers/staging/greybus/Makefile
index 0cc769eb470a0..f337b7b70782a 100644
--- a/drivers/staging/greybus/Makefile
+++ b/drivers/staging/greybus/Makefile
@@ -85,7 +85,7 @@ obj-$(CONFIG_GREYBUS_GPIO)		+= gb-gpio.o
 obj-$(CONFIG_GREYBUS_I2C)		+= gb-i2c.o
 obj-$(CONFIG_GREYBUS_PWM)		+= gb-pwm.o
 obj-$(CONFIG_GREYBUS_SDIO)		+= gb-sdio.o
-obj-$(CONFIG_GREYBUS_SPI)		+= gb-spi.o
+obj-$(CONFIG_GREYBUS_SPI)		+= gb-spi.o gb-spilib.o
 obj-$(CONFIG_GREYBUS_UART)		+= gb-uart.o
 obj-$(CONFIG_GREYBUS_USB)		+= gb-usb.o