Skip to content
Snippets Groups Projects
user avatar
Yang Yingliang authored
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>
e5d5ffa4
History
Name Last commit Last update