Commit 3918b201 authored by Changhuang Liang's avatar Changhuang Liang Committed by Greg Kroah-Hartman
Browse files

reset: starfive: jh71x0: Fix accessing the empty member on JH7110 SoC



commit 2cf59663 upstream.

data->asserted will be NULL on JH7110 SoC since commit 82327b12
("reset: starfive: Add StarFive JH7110 reset driver") was added. Add
the judgment condition to avoid errors when calling reset_control_status
on JH7110 SoC.

Fixes: 82327b12 ("reset: starfive: Add StarFive JH7110 reset driver")
Signed-off-by: default avatarChanghuang Liang <changhuang.liang@starfivetech.com>
Acked-by: default avatarHal Feng <hal.feng@starfivetech.com>
Reviewed-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20240925112442.1732416-1-changhuang.liang@starfivetech.com


Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: default avatarJianqi Ren <jianqi.ren.cn@windriver.com>
Signed-off-by: default avatarHe Zhe <zhe.he@windriver.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 790d3057
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment