lkml.org 
[lkml]   [2013]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH RESEND 3/4] mfd: tps65090: Pass irq domain when adding mfd sub devices
    Date
    When device is get added through DT then irq_base is 0 (zero)
    and in this case regmap_irq_chip_get_base() generates warning.
    The interrupt of this device get added through irq_domain_add_linear()
    when irq_base is 0.

    Hence pass the irq domain in place of base_irq when calling
    mfd_add_devices().

    Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
    ---
    drivers/mfd/tps65090.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/mfd/tps65090.c b/drivers/mfd/tps65090.c
    index e4cf030..3e987be 100644
    --- a/drivers/mfd/tps65090.c
    +++ b/drivers/mfd/tps65090.c
    @@ -236,7 +236,7 @@ static int tps65090_i2c_probe(struct i2c_client *client,

    ret = mfd_add_devices(tps65090->dev, -1, tps65090s,
    ARRAY_SIZE(tps65090s), NULL,
    - regmap_irq_chip_get_base(tps65090->irq_data), NULL);
    + 0, regmap_irq_get_domain(tps65090->irq_data));
    if (ret) {
    dev_err(&client->dev, "add mfd devices failed with err: %d\n",
    ret);
    --
    1.7.1.1


    \
     
     \ /
      Last update: 2013-01-27 10:21    [W:4.290 / U:0.152 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site