|
@@ -599,7 +599,7 @@ struct gpio_desc *acpi_find_gpio(struct device *dev,
|
|
|
|
|
|
/* Try first from _DSD */
|
|
|
for (i = 0; i < ARRAY_SIZE(gpio_suffixes); i++) {
|
|
|
- if (con_id && strcmp(con_id, "gpios")) {
|
|
|
+ if (con_id) {
|
|
|
snprintf(propname, sizeof(propname), "%s-%s",
|
|
|
con_id, gpio_suffixes[i]);
|
|
|
} else {
|
|
@@ -1089,7 +1089,7 @@ int acpi_gpio_count(struct device *dev, const char *con_id)
|
|
|
|
|
|
/* Try first from _DSD */
|
|
|
for (i = 0; i < ARRAY_SIZE(gpio_suffixes); i++) {
|
|
|
- if (con_id && strcmp(con_id, "gpios"))
|
|
|
+ if (con_id)
|
|
|
snprintf(propname, sizeof(propname), "%s-%s",
|
|
|
con_id, gpio_suffixes[i]);
|
|
|
else
|