On Thu, Jun 10, 2021 at 06:28:23PM +0300, Andy Shevchenko wrote: > In some cases we may get a platform device that has ACPI companion > which is different to the pin control described in the ACPI tables. > This is primarily happens when device is instantiated by board file. Can you point which board file in the mainline kernel has this issue? If not then I don't think it makes sense to add code like this.