[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <2156078.GxeZgK3rLH@amdc1032>
Date: Thu, 07 Aug 2014 18:48:52 +0200
From: Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>
To: Samuel Ortiz <sameo@...ux.intel.com>
Cc: Lee Jones <lee.jones@...aro.org>,
Krzysztof Kozlowski <k.kozlowski@...sung.com>,
Sangbeom Kim <sbkim73@...sung.com>,
Kyungmin Park <kyungmin.park@...sung.com>,
linux-kernel@...r.kernel.org, linux-samsung-soc@...r.kernel.org
Subject: Re: [PATCH] mfd: sec-core: add missing sec_irq_init() return value
checking
[ added missing linux-samsung-soc ML, sorry for the noise ]
On Thursday, August 07, 2014 06:44:18 PM Bartlomiej Zolnierkiewicz wrote:
> sec_irq_init() can fail if it encounters unknown device type or
> on regmap_add_irq_chip() error. Add missing sec_irq_init() return
> value checking to sec_pmic_probe().
>
> Tested on Insignal's Exynos4412 based Origen board.
>
> Cc: Krzysztof Kozlowski <k.kozlowski@...sung.com>
> Cc: Sangbeom Kim <sbkim73@...sung.com>
> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>
> Acked-by: Kyungmin Park <kyungmin.park@...sung.com>
> ---
> patch is against next-20140804 branch of linux-next kernel
>
> drivers/mfd/sec-core.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c
> index dba7e2b..f498867 100644
> --- a/drivers/mfd/sec-core.c
> +++ b/drivers/mfd/sec-core.c
> @@ -353,7 +353,9 @@ static int sec_pmic_probe(struct i2c_client *i2c,
> if (pdata && pdata->cfg_pmic_irq)
> pdata->cfg_pmic_irq();
>
> - sec_irq_init(sec_pmic);
> + ret = sec_irq_init(sec_pmic);
> + if (ret)
> + return ret;
>
> pm_runtime_set_active(sec_pmic->dev);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists