-
Notifications
You must be signed in to change notification settings - Fork 139
Description
in #164 the patch 'ASoC: SOF: Refine registeration of platform device' modified the way the machine driver is registered, and modified the arguments that are passed as pdata.
In the acpi case, we passed the 'mach' structure as argument because we need to check the actual device name. This is now broken, so this patch needs to be redone - with probably different arguments passed depending on the machine driver (e.g. mach pointer for i2s machine drivers and codec-mask pointer for hdaudio)
This change was also made only for ACPI and PCI but not for SPI, so @lyakh and @lgirdwood would need to chime in on this.
And last there is no consistent handling of the platform_device_unregister(), this was not removed for ACPI, removed for ACPI and removed in the next patch for SPI
To me this was a wild merge that hasn't been tested on all platforms...