Skip to content

Commit

Permalink
MIPS: Loongson: Do not register 8250 platform device from module.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reported-by: Paul Gortmaker <[email protected]>
Patchwork: https://patchwork.linux-mips.org/patch/10538/
  • Loading branch information
ralfbaechle committed Jun 10, 2015
1 parent 34b1252 commit d9fb566
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/mips/loongson/common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
#

obj-y += setup.o init.o cmdline.o env.o time.o reset.o irq.o \
bonito-irq.o mem.o machtype.o platform.o
bonito-irq.o mem.o machtype.o platform.o serial.o
obj-$(CONFIG_PCI) += pci.o

#
# Serial port support
#
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
loongson-serial-$(CONFIG_SERIAL_8250) := serial.o
obj-y += $(loongson-serial-m) $(loongson-serial-y)
obj-$(CONFIG_LOONGSON_UART_BASE) += uart_base.o
obj-$(CONFIG_LOONGSON_MC146818) += rtc.o

Expand Down

0 comments on commit d9fb566

Please sign in to comment.