[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 tklau...@distanz.ch --- drivers/spi/spi-altera.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git

Re: [PATCH] spi: spi-altera: Use of_match_ptr

2012-08-15 Thread Rob Herring
On 08/15/2012 02:30 AM, Tobias Klauser wrote: 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 tklau...@distanz.ch Acked-by: Rob Herring rob.herr...@calxeda.com Adding Mark B. as

Re: [PATCH] spi: spi-altera: Use of_match_ptr

2012-08-15 Thread Mark Brown
On Wed, Aug 15, 2012 at 08:09:07AM -0500, Rob Herring wrote: On 08/15/2012 02:30 AM, Tobias Klauser wrote: 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 tklau...@distanz.ch

Re: [PATCH] spi: spi-altera: Use of_match_ptr

2012-08-15 Thread Mark Brown
On Wed, Aug 15, 2012 at 09:30:28AM +0200, Tobias Klauser wrote: 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. Applied, thanks. --