On Thu, Mar 23, 2017 at 12:41 AM, Rafael J. Wysocki <raf...@kernel.org> wrote: > On Wed, Mar 22, 2017 at 11:58 PM, Joerg Roedel <jroe...@suse.de> wrote: >> Hi Rafael, >> >> On Wed, Mar 22, 2017 at 06:42:39PM +0100, Rafael J. Wysocki wrote: >>> On Wednesday, March 22, 2017 06:33:25 PM Joerg Roedel wrote: >>> > From: Joerg Roedel <jroe...@suse.de> >>> > >>> > No platform-device is required for IO(x)APICs, so don't even >>> > create them. >>> > >>> > Signed-off-by: Joerg Roedel <jroe...@suse.de> >>> >>> If we do this, I'd prefer not to do [2/3], because we'll introduce code that >>> will be essentially dead then. >> >> In this case the code in acpi_bus_attach() adding platform_devices is also >> dead. Could it be removed then? > > It is not dead. > > Platform devices are actually created by it, but they never go away.
IOW, they should never be created for anything hot-removable. If they are, this is a bug (as you noticed). Thanks, Rafael