.. | .. |
---|
187 | 187 | |
---|
188 | 188 | /* |
---|
189 | 189 | * A lot of BYT devices lack ACPI resource entries for |
---|
190 | | - * the GPIOs, add a fallback mapping to the reference |
---|
| 190 | + * the GPIOs. If the ACPI entry for the GPIO controller |
---|
| 191 | + * is present add a fallback mapping to the reference |
---|
191 | 192 | * design GPIOs which all boards seem to use. |
---|
192 | 193 | */ |
---|
193 | | - gpiod_add_lookup_table(&platform_bytcr_gpios); |
---|
| 194 | + if (acpi_dev_present("INT33FC", NULL, -1)) |
---|
| 195 | + gpiod_add_lookup_table(&platform_bytcr_gpios); |
---|
194 | 196 | |
---|
195 | 197 | /* |
---|
196 | 198 | * These GPIOs will turn on the USB2 PHY. Note that we have to |
---|