Thread (16 messages) flat view 16 messages, 4 authors, 2011-02-05

Re: [PATCH v6] spi: New driver for Altera SPI

From: Thomas Chou <hidden>
Date: 2011-02-05 13:07:49
Also in: linux-spi, lkml

On 02/04/2011 01:34 AM, Grant Likely wrote:
Hi Thomas, comments below, but looking pretty close.
Thanks a lot.
quoted
+config SPI_ALTERA
+	tristate "Altera SPI Controller"
+	select SPI_BITBANG
Will this compile on all architectures?  Will it break allyesconfig
on anything other than nios?
Yes, it compile on other architectures. I will add 'default n' though.

There are soft-core arm, mips and coldfire running on altera fpga. 
Others might use fpga as peripheral extender, too. So we shouldn't limit 
it to nios2.
quoted
+static int __init altera_spi_init(void)
+{
+	return platform_driver_probe(&altera_spidrv, altera_spi_probe);
platform_driver_register() please, and put the altera_spi_probe()
routine into the driver structure.
I will change it to register as you suggested.

- Thomas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help