spi: spi-altera: Use of_match_ptr
authorTobias Klauser <tklauser@distanz.ch>
Wed, 15 Aug 2012 07:30:28 +0000 (09:30 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 17 Aug 2012 21:56:18 +0000 (22:56 +0100)
commit89f98dc5eaf78a5a6920c54ee8ef8992d35f8c48
tree18caf97076651e5cb396779dfd4d6c1c98b3ac53
parentba59a807883382f6ce5ad884312d91d5748e90ee
spi: spi-altera: Use of_match_ptr

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 <tklauser@distanz.ch>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-altera.c