linux_dsm_epyc7002/arch/arm/mach-davinci
Vivien Didelot 0273612cb8 ARM: davinci: da8xx_register_spi() should not register SPI board info
Without this patch, da8xx_register_spi() registers the SPI board info,
the SPI controller, and sets its number of chipselect to the size of the
static spi_board_info array. This is bad because a SPI board info may
declare devices for different SPI buses, and because other code can also
call spi_register_board_info() (e.g. a daughter board might provide
additional SPI devices).

This patch removes the spi_register_board_info() call from
da8xx_register_spi(), renames this last one to da8xx_register_spi_bus()
to be more explicit, takes the number of chipselect as a function
parameter, and updates the impacted board-da8{3,5}0-evm.c, and
board-mityomapl138.c files accordingly. It also sets the SPI platform
data static, as it doesn't need to be exported.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
[nsekhar@ti.com: fixed conflicts with v3.7-rc7, converted to use pr_warn(),
modified print messages to use __func__]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
2013-01-03 17:30:35 +05:30
..
include/mach ARM: davinci: da8xx_register_spi() should not register SPI board info 2013-01-03 17:30:35 +05:30
aemif.c ARM: davinci: move platform_data definitions 2012-09-14 11:16:54 +02:00
asp.h ASoC/ARM: Davinci: McASP: split asp header into platform and audio specific 2012-08-27 11:12:09 -07:00
board-da830-evm.c ARM: davinci: da8xx_register_spi() should not register SPI board info 2013-01-03 17:30:35 +05:30
board-da850-evm.c ARM: davinci: da8xx_register_spi() should not register SPI board info 2013-01-03 17:30:35 +05:30
board-dm355-evm.c ARM: davinci: convert platform code to use clk_prepare/clk_unprepare 2012-10-24 16:52:05 +05:30
board-dm355-leopard.c ARM: davinci: convert platform code to use clk_prepare/clk_unprepare 2012-10-24 16:52:05 +05:30
board-dm365-evm.c ARM: davinci: convert platform code to use clk_prepare/clk_unprepare 2012-10-24 16:52:05 +05:30
board-dm644x-evm.c ARM: arm-soc: SoC updates for 3.8 2012-12-12 12:05:15 -08:00
board-dm646x-evm.c ARM: davinci: board-dm646x-evm.c: Remove unecessary semicolon 2012-10-26 13:59:01 +05:30
board-mityomapl138.c ARM: davinci: da8xx_register_spi() should not register SPI board info 2013-01-03 17:30:35 +05:30
board-neuros-osd2.c ARM: davinci: convert platform code to use clk_prepare/clk_unprepare 2012-10-24 16:52:05 +05:30
board-omapl138-hawk.c ARM: davinci: use machine specific hook for late init 2012-05-05 14:20:01 +08:00
board-sffsdr.c ARM: davinci: move platform_data definitions 2012-09-14 11:16:54 +02:00
board-tnetv107x-evm.c sections: fix section conflicts in arch/arm/ 2012-10-06 03:04:38 +09:00
cdce949.c arm: fix implicit module.h users by adding it to arch/arm as required. 2011-10-31 19:30:50 -04:00
clock.c ARM: davinci: use machine specific hook for late init 2012-05-05 14:20:01 +08:00
clock.h ARM: davinci: add support for multiple power domains 2011-12-03 00:35:52 +05:30
common.c ARM: davinci: remove obsoleted init_consistent_dma_size() 2012-11-13 10:13:20 +01:00
cp_intc.c ARM: davinci: cp_intc: Add OF support for TI interrupt controller 2012-07-05 14:12:35 +05:30
cpufreq.c ARM: davinci: use machine specific hook for late init 2012-05-05 14:20:01 +08:00
cpuidle.c ARM: davinci: Fix for cpuidle consolidation changes 2012-03-22 01:19:44 -04:00
da8xx-dt.c ARM: davinci: add support for am1808 based EnBW CMC board 2012-10-29 15:43:43 +05:30
da830.c video: da8xx-fb: clk_get on connection id fck 2012-11-27 11:52:40 +02:00
da850.c fbdev changes for 3.8: 2012-12-15 13:03:48 -08:00
davinci.h Sound updates for 3.7-rc1 2012-10-09 07:07:14 +09:00
devices-da8xx.c ARM: davinci: da8xx_register_spi() should not register SPI board info 2013-01-03 17:30:35 +05:30
devices-tnetv107x.c ARM: davinci: fix return value check by using IS_ERR in tnetv107x_devices_init() 2012-10-30 14:03:31 +05:30
devices.c Sound updates for 3.7-rc1 2012-10-09 07:07:14 +09:00
dm355.c ARM: davinci: sram: switch from iotable to ioremapped regions 2012-10-27 16:28:33 +05:30
dm365.c ARM: davinci: sram: switch from iotable to ioremapped regions 2012-10-27 16:28:33 +05:30
dm644x.c ARM: arm-soc: SoC updates for 3.8 2012-12-12 12:05:15 -08:00
dm646x.c ARM: davinci: sram: switch from iotable to ioremapped regions 2012-10-27 16:28:33 +05:30
dma.c arm-soc: driver specific updates 2012-05-26 12:22:27 -07:00
irq.c Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc 2011-07-19 22:10:05 -07:00
Kconfig ARM: davinci: da850: add DT boot support 2012-10-29 15:24:42 +05:30
Makefile ARM: davinci: da850: add DT boot support 2012-10-29 15:24:42 +05:30
Makefile.boot ARM: davinci: move dtb targets to common location 2012-11-19 22:25:59 -08:00
mux.c Davinci: pinmux - use ioremap() 2010-05-13 10:05:29 -07:00
mux.h Davinci: eliminate pinmux offset verbosity 2010-05-06 15:02:09 -07:00
pm_domain.c video: da8xx-fb: clk_get on connection id fck 2012-11-27 11:52:40 +02:00
pm.c ARM: davinci: use machine specific hook for late init 2012-05-05 14:20:01 +08:00
psc.c ARM: davinci: psc: fix incorrect offsets 2011-12-05 16:47:15 +05:30
serial.c ARM: davinci: serial: provide API to initialze UART clocks 2012-10-27 16:28:31 +05:30
sleep.S Merge branch 'depends/rmk/memory_h' into next/fixes 2011-10-31 23:11:53 +01:00
sram.c ARM: davinci: add platform hook to fetch the SRAM pool 2012-10-27 16:28:35 +05:30
time.c ARM: davinci: convert platform code to use clk_prepare/clk_unprepare 2012-10-24 16:52:05 +05:30
tnetv107x.c ARM: 7190/1: restart: davinci: use new restart hook 2012-01-05 12:57:09 +00:00
usb.c ARM: davinci: usb: remove CONFIG_USB_MUSB_HOST etc 2012-10-24 16:37:17 +05:30