From: Ralf Baechle Date: Tue, 9 Jun 2015 07:35:34 +0000 (+0200) Subject: MIPS: Loongson: Do not register 8250 platform device from module. X-Git-Tag: omap-for-v4.2/fixes-rc1^2~200^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9fb5660459819513d510e72caa3120a7cf41ee1;p=pandora-kernel.git MIPS: Loongson: Do not register 8250 platform device from module. If CONFIG_SERIAL_8250 is set to m, the Loongson seria.ko module might get unloaded while the serial driver modules are still loaded resulting in stale references to the destroyed platform_device instance. Anyway, platform devices should always be registered indicated what devices are present, _not_ what drivers have been configured. Signed-off-by: Ralf Baechle Reported-by: Paul Gortmaker Patchwork: https://patchwork.linux-mips.org/patch/10538/ --- Reading git-diff-tree failed