Skip to content
Commit 0e2c8e6d authored by Lin Yujun's avatar Lin Yujun Committed by Daniel Lezcano
Browse files

clocksource/drivers/timer-gxp: Add missing error handling in gxp_timer_probe



Add platform_device_put() to make sure to free the platform
device in the event platform_device_add() fails.

Fixes: 5184f4bf ("clocksource/drivers/timer-gxp: Add HPE GXP Timer")
Signed-off-by: default avatarLin Yujun <linyujun809@huawei.com>
Link: https://lore.kernel.org/r/20220914033018.97484-1-linyujun809@huawei.com


Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent 6c3b62d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment