Yang Yingliang e5d5ffa48a 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: 917f54340794 ("platform/x86: simatic-ipc: add CMOS battery monitoring")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230809081227.1221267-1-yangyingliang@huawei.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2023-08-09 22:02:50 +02:00
..
2023-06-30 14:50:00 -07:00
2023-06-30 14:50:00 -07:00
2023-04-25 18:32:43 -07:00
2022-12-12 13:38:17 -08:00
2023-03-27 16:10:20 +02:00
2023-03-27 16:10:20 +02:00
2022-12-12 13:38:17 -08:00