1
0
Fork 0
alistair23-linux/arch/mips/bcm63xx
Jonas Gorski 682fee8028
MIPS: BCM63XX: drop unused and broken DSP platform device
Trying to register the DSP platform device results in a null pointer
access:

[    0.124184] CPU 0 Unable to handle kernel paging request at virtual address 00000000, epc == 804e305c, ra == 804e6f20
[    0.135208] Oops[#1]:
[    0.137514] CPU: 0 PID: 1 Comm: swapper Not tainted 4.14.87
...
[    0.197117] epc   : 804e305c bcm63xx_dsp_register+0x80/0xa4
[    0.202838] ra    : 804e6f20 board_register_devices+0x258/0x390
...

This happens because it tries to copy the passed platform data over the
platform_device's unpopulated platform_data.

Since this code has been broken since its submission, no driver was ever
submitted for it, and apparently nobody was using it, just remove it
instead of trying to fix it.

Fixes: e7300d04bd ("MIPS: BCM63xx: Add support for the Broadcom BCM63xx family of SOCs.")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
2018-12-31 07:12:35 -08:00
..
boards MIPS: BCM63XX: drop unused and broken DSP platform device 2018-12-31 07:12:35 -08:00
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile MIPS: BCM63XX: drop unused and broken DSP platform device 2018-12-31 07:12:35 -08:00
Platform MIPS: BCM63xx: Migrate to new platform makefile style. 2010-08-05 13:25:54 +01:00
clk.c MIPS: BCM63XX: split out swpkt_sar/usb clocks 2017-11-07 18:33:20 +00:00
cpu.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
cs.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
dev-enet.c bcm63xx_enet: use platform data for dma channel numbers 2017-12-19 11:07:16 -05:00
dev-flash.c MIPS: BCM63XX: add support for BCM3368 Cable Modem 2013-07-01 15:10:53 +02:00
dev-hsspi.c MIPS: BCM63XX: add HSSPI platform device and register it 2014-01-22 20:18:50 +01:00
dev-pcmcia.c MIPS: BCM63XX: Use pr_* instead of printk 2015-11-11 08:38:29 +01:00
dev-rng.c MIPS: BCM63XX: add RNG driver platform_device stub 2012-07-24 16:33:10 +02:00
dev-spi.c spi/bcm63xx: move register definitions into the driver 2015-10-23 01:19:58 +09:00
dev-uart.c MIPS: BCM63XX: add support for BCM3368 Cable Modem 2013-07-01 15:10:53 +02:00
dev-usb-usbd.c MIPS: BCM63XX: Create platform_device for USBD 2012-08-30 20:15:52 +02:00
dev-wdt.c MIPS: BCM63XX: Fix platform_devices id 2012-07-24 16:33:09 +02:00
early_printk.c mips: unify prom_putchar() declarations 2018-07-17 09:40:17 -07:00
gpio.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
irq.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00
nvram.c Revert "MIPS: bcm63xx: nvram: Remove unused bcm63xx_nvram_get_psi_size() function" 2016-01-27 20:51:50 +01:00
prom.c mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
reset.c MIPS: BCM63XX: fix switch core reset on BCM6368 2018-12-23 07:57:11 -08:00
setup.c mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
timer.c MIPS: Audit and remove any unnecessary uses of module.h 2017-02-14 09:00:25 +00:00