mfd: Build rtc5t583 only if I2C config is selected to y.
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 19 Mar 2012 06:14:55 +0000 (11:14 +0530)
committerSimone Willett <swillett@nvidia.com>
Fri, 23 Mar 2012 21:04:14 +0000 (14:04 -0700)
commitdbf761076a2c9d749d8935a8d7d6e7ab14193cf8
tree377e626617851f0a4bff1dfed3a07aa8a717fea0
parent7928a565cd3d34d2efd5e9b27345f66339d03dd7
mfd: Build rtc5t583 only if I2C config is selected to y.

Fixing build error reported by Stephen Rothwell:

drivers/built-in.o: In function `rc5t583_i2c_init':
rc5t583.c:(.init.text+0xb3db): undefined reference to `i2c_register_driver'
drivers/built-in.o: In function `rc5t583_i2c_probe':
rc5t583.c:(.devinit.text+0x8fa0): undefined reference to `regmap_init_i2c'
drivers/built-in.o: In function `rc5t583_i2c_exit':
rc5t583.c:(.exit.text+0x708): undefined reference to `i2c_del_driver'

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
(cherry picked from commit 5364d0b8640dd15e5c0b3ba40d0e874764b1bc88)

Change-Id: If1cfde6c6e0e52b4e55b07401afcd91a895b8905
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/91799
Reviewed-by: Automatic_Commit_Validation_User
drivers/mfd/Kconfig