lkml.org 
[lkml]   [2012]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] regmap: Pass back the allocated regmap IRQ controller data
    Date
    It's needed for freeing and for obtaining the IRQ base later on.

    Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
    ---
    drivers/base/regmap/regmap-irq.c | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/drivers/base/regmap/regmap-irq.c b/drivers/base/regmap/regmap-irq.c
    index 1befaa7..f4e6dcf 100644
    --- a/drivers/base/regmap/regmap-irq.c
    +++ b/drivers/base/regmap/regmap-irq.c
    @@ -192,6 +192,8 @@ int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
    if (!d)
    return -ENOMEM;

    + *data = d;
    +
    d->status_buf = kzalloc(sizeof(unsigned int) * chip->num_regs,
    GFP_KERNEL);
    if (!d->status_buf)
    --
    1.7.10


    \
     
     \ /
      Last update: 2012-05-13 13:01    [W:0.022 / U:306.300 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site