diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-05-09 08:49:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-05-22 22:14:58 +0100 |
commit | 0ae5fb6fd346cf368639fb6256db6af0831b0048 (patch) | |
tree | eb360406b1cbd277b3860b28caa6a249b3d567f1 /drivers/edac | |
parent | 3b813798aa7030f1beef638c75f8b0008f737a82 (diff) | |
download | linux-stable-0ae5fb6fd346cf368639fb6256db6af0831b0048.tar.gz linux-stable-0ae5fb6fd346cf368639fb6256db6af0831b0048.tar.bz2 linux-stable-0ae5fb6fd346cf368639fb6256db6af0831b0048.zip |
iio: dac: Fix build error when CONFIG_SPI_MASTER=y && CONFIG_I2C=m
This patch fixes below build error when CONFIG_SPI_MASTER=y && CONFIG_I2C=m:
drivers/built-in.o: In function `ad5064_i2c_write':
drivers/iio/dac/ad5064.c:608: undefined reference to `i2c_master_send'
drivers/built-in.o: In function `ad5064_i2c_register_driver':
drivers/iio/dac/ad5064.c:646: undefined reference to `i2c_register_driver'
drivers/built-in.o: In function `ad5064_i2c_unregister_driver':
drivers/iio/dac/ad5064.c:651: undefined reference to `i2c_del_driver'
make: *** [vmlinux] Error 1
When CONFIG_I2C=m, meaning we can't build the drivers in with I2C support.
Thus don't allow the drivers to be compiled as built-in when CONFIG_I2C=m.
The real fix though is to break the driver apart into a SPI part, an I2C part
and a common part. But that's something for 3.11 while this is something for
3.10/stable.
Reported-by: Wu Fengguang <fengguang.wu@intel.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/edac')
0 files changed, 0 insertions, 0 deletions