greybus: i2c : Create separate module
Create separate module for i2c gpbridge driver.
Tested on EVT 1.5 by inserting GP test module, all the devices were
enumerated correctly.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
diff --git a/drivers/staging/greybus/Makefile b/drivers/staging/greybus/Makefile
index e5c784d..b9e4e96 100644
--- a/drivers/staging/greybus/Makefile
+++ b/drivers/staging/greybus/Makefile
@@ -18,7 +18,6 @@
sdio.o \
uart.o \
pwm.o \
- i2c.o \
spi.o \
usb.o
@@ -40,6 +39,7 @@
gb-camera-y := camera.o
gb-firmware-y := fw-core.o fw-download.o
gb-gpio-y := gpio.o
+gb-i2c-y := i2c.o
obj-m += greybus.o
obj-m += gb-phy.o
@@ -63,6 +63,7 @@
obj-m += gb-audio-manager.o
obj-m += gb-firmware.o
obj-m += gb-gpio.o
+obj-m += gb-i2c.o
KERNELVER ?= $(shell uname -r)
KERNELDIR ?= /lib/modules/$(KERNELVER)/build