diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-14 15:31:50 +0530 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-01 14:27:09 +0100 |
commit | 9547acce669ec7b5613eb9be0838bff47258ccbf (patch) | |
tree | b04bba1ef8a7ab09ec32c7caba3b7899d77928f2 /drivers/spi/spi-oc-tiny.c | |
parent | ff23fa3bb05b296eeab2ccde92c0cdbc05942a1c (diff) | |
download | linux-3.10-9547acce669ec7b5613eb9be0838bff47258ccbf.tar.gz linux-3.10-9547acce669ec7b5613eb9be0838bff47258ccbf.tar.bz2 linux-3.10-9547acce669ec7b5613eb9be0838bff47258ccbf.zip |
spi: spi-oc-tiny: Use of_match_ptr() macro
This eliminates having an #ifdef returning NULL for the case
when OF is disabled.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi/spi-oc-tiny.c')
-rw-r--r-- | drivers/spi/spi-oc-tiny.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/spi/spi-oc-tiny.c b/drivers/spi/spi-oc-tiny.c index cb2e284bd81..e60a776ed2d 100644 --- a/drivers/spi/spi-oc-tiny.c +++ b/drivers/spi/spi-oc-tiny.c @@ -393,8 +393,6 @@ static const struct of_device_id tiny_spi_match[] = { {}, }; MODULE_DEVICE_TABLE(of, tiny_spi_match); -#else /* CONFIG_OF */ -#define tiny_spi_match NULL #endif /* CONFIG_OF */ static struct platform_driver tiny_spi_driver = { @@ -404,7 +402,7 @@ static struct platform_driver tiny_spi_driver = { .name = DRV_NAME, .owner = THIS_MODULE, .pm = NULL, - .of_match_table = tiny_spi_match, + .of_match_table = of_match_ptr(tiny_spi_match), }, }; module_platform_driver(tiny_spi_driver); |