lkml.org 
[lkml]   [2015]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.19 152/177] i2c: core: Export bus recovery functions
    Date
    3.19-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Mark Brown <broonie@kernel.org>

    commit c1c21f4e60ed4523292f1a89ff45a208bddd3849 upstream.

    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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/i2c/i2c-core.c | 3 +++
    1 file changed, 3 insertions(+)

    --- a/drivers/i2c/i2c-core.c
    +++ b/drivers/i2c/i2c-core.c
    @@ -596,6 +596,7 @@ int i2c_generic_scl_recovery(struct i2c_
    adap->bus_recovery_info->set_scl(adap, 1);
    return i2c_generic_recovery(adap);
    }
    +EXPORT_SYMBOL_GPL(i2c_generic_scl_recovery);

    int i2c_generic_gpio_recovery(struct i2c_adapter *adap)
    {
    @@ -610,6 +611,7 @@ int i2c_generic_gpio_recovery(struct i2c

    return ret;
    }
    +EXPORT_SYMBOL_GPL(i2c_generic_gpio_recovery);

    int i2c_recover_bus(struct i2c_adapter *adap)
    {
    @@ -619,6 +621,7 @@ int i2c_recover_bus(struct i2c_adapter *
    dev_dbg(&adap->dev, "Trying i2c bus recovery\n");
    return adap->bus_recovery_info->recover_bus(adap);
    }
    +EXPORT_SYMBOL_GPL(i2c_recover_bus);

    static int i2c_device_probe(struct device *dev)
    {



    \
     
     \ /
      Last update: 2015-05-02 23:01    [W:3.513 / U:0.272 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site