diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-04-21 19:22:40 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-21 22:33:55 +0300 |
commit | 239c599a5f553d65ddc933d06bbbed95aaad9dd0 (patch) | |
tree | 2ba3a3b1006ef83ec59b8e032b5d3f9475de0995 /drivers/rapidio | |
parent | 69e3948aaa559670da2662ad9d5cbc782bfc6885 (diff) | |
download | linux-239c599a5f553d65ddc933d06bbbed95aaad9dd0.tar.xz |
net: dsa: LAN9303: add I2C dependency
With CONFIG_I2C=m and NET_DSA_SMSC_LAN9303=y, we run into a link error:
drivers/base/regmap/regmap-i2c.o: In function `regmap_smbus_byte_reg_read':
regmap-i2c.c:(.text.regmap_smbus_byte_reg_read+0x18): undefined reference to `i2c_smbus_read_byte_data'
drivers/base/regmap/regmap-i2c.o: In function `regmap_smbus_byte_reg_write':
regmap-i2c.c:(.text.regmap_smbus_byte_reg_write+0x18): undefined reference to `i2c_smbus_write_byte_data'
drivers/base/regmap/regmap-i2c.o: In function `regmap_smbus_word_reg_read':
regmap-i2c.c:(.text.regmap_smbus_word_reg_read+0x18): undefined reference to `i2c_smbus_read_word_data'
drivers/base/regmap/regmap-i2c.o: In function `regmap_smbus_word_read_swapped':
regmap-i2c.c:(.text.regmap_smbus_word_read_swapped+0x18): undefined reference to `i2c_smbus_read_word_data'
drivers/base/regmap/regmap-i2c.o: In function `regmap_smbus_word_write_swapped':
This adds a Kconfig dependency to avoid the broken configuration.
Fixes: be4e119f9914 ("net: dsa: LAN9303: add I2C managed mode support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/rapidio')
0 files changed, 0 insertions, 0 deletions