]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: core: Export bus recovery functions
authorMark Brown <broonie@kernel.org>
Wed, 15 Apr 2015 18:18:39 +0000 (19:18 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 17 May 2015 23:12:23 +0000 (19:12 -0400)
commit808601dcd371399fabc26c74fd54396cbfd761b6
tree8e28ece1a77a0c7ceacfdf3f2236e10f5fff1e79
parent74cd034768fecc289b1ef569f446ff1a54b5081b
i2c: core: Export bus recovery functions

[ Upstream commit c1c21f4e60ed4523292f1a89ff45a208bddd3849 ]

Current -next fails to link an ARM allmodconfig because drivers that use
the core recovery functions can be built as modules but those functions
are not exported:

ERROR: "i2c_generic_gpio_recovery" [drivers/i2c/busses/i2c-davinci.ko] undefined!
ERROR: "i2c_generic_scl_recovery" [drivers/i2c/busses/i2c-davinci.ko] undefined!
ERROR: "i2c_recover_bus" [drivers/i2c/busses/i2c-davinci.ko] undefined!

Add exports to fix this.

Fixes: 5f9296ba21b3c (i2c: Add bus recovery infrastructure)
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/i2c/i2c-core.c