[PATCH] spi: spi-xilinx: Pass NULL to platform_set_drvdata

2012-08-16 Thread Tobias Klauser
platform_set_drvdata expects a void *, so pass NULL instead of 0. Signed-off-by: Tobias Klauser --- drivers/spi/spi-xilinx.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c index 4c5a663..2501700 100644 --- a/drivers

[PATCH] spi: spi-bcm63xx: Pass NULL to platform_set_drvdata

2012-08-16 Thread Tobias Klauser
platform_set_drvdata expects a void *, so pass NULL instead of 0. Signed-off-by: Tobias Klauser --- drivers/spi/spi-bcm63xx.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index 6d97047..fc357e2 100644 --- a

[PATCH] spi: spi-altera: Use of_match_ptr

2012-08-15 Thread Tobias Klauser
Instead of having to define the match table to NULL if CONFIG_OF isn't set, use the of_match_ptr() macro which will do this for us. Signed-off-by: Tobias Klauser --- drivers/spi/spi-altera.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-alter

[PATCH] spi/nuc900: Remove unnecessary memset of struct nuc900_spi

2012-02-01 Thread Tobias Klauser
The memory allocated using kzalloc by spi_alloc_master so it doesn't need to be set to 0 again. Signed-off-by: Tobias Klauser --- drivers/spi/spi-nuc900.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-nuc900.c b/drivers/spi/spi-nuc900.c index 18

[PATCH] spi/spi-altera: Allow to explicitely override bus number via dts

2012-01-31 Thread Tobias Klauser
From: Frederic Lambert Until now we let the code in spi.c assign us the bus number if the platform device didn't specify its id. This patch adds the possibility to explicitely specify the bus number via device tree. Signed-off-by: Frederic Lambert Signed-off-by: Tobias Kl