Re: [PATCH 04/24] soc: mediatek: pwrap: add missing check on rstc

2019-04-12 Thread Matthias Brugger
On 23/03/2019 22:15, Fabien Parent wrote: > The variable rstc is set only when the SoC PWRAP have the > PWRAP_CAP_RESET capability. Check whether rstc is set before > using it to avoid errors. > > Signed-off-by: Fabien Parent > --- > drivers/soc/mediatek/mtk-pmic-wrap.c | 3 ++- > 1 file

[PATCH 04/24] soc: mediatek: pwrap: add missing check on rstc

2019-03-23 Thread Fabien Parent
The variable rstc is set only when the SoC PWRAP have the PWRAP_CAP_RESET capability. Check whether rstc is set before using it to avoid errors. Signed-off-by: Fabien Parent --- drivers/soc/mediatek/mtk-pmic-wrap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git