forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/sound/soc/codecs/tlv320adcx140.c
....@@ -870,7 +870,7 @@
870870
871871 gpio_count = device_property_count_u32(adcx140->dev,
872872 "ti,gpio-config");
873
- if (gpio_count == 0)
873
+ if (gpio_count <= 0)
874874 return 0;
875875
876876 if (gpio_count != ADCX140_NUM_GPIO_CFGS)