Skip to content
Snippets Groups Projects
Commit e5d5ffa4 authored by Yang Yingliang's avatar Yang Yingliang Committed by Hans de Goede
Browse files

platform/x86/siemens: simatic-ipc-batt: fix wrong pointer pass to PTR_ERR()


Fix wrong pointer pass to PTR_ERR() if devm_gpiod_get_index() fails.

Fixes: 917f5434 ("platform/x86: simatic-ipc: add CMOS battery monitoring")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230809081227.1221267-1-yangyingliang@huawei.com


Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent c56beff2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment