RK3368 DDR: add support 3368 ddr change freq function
[firefly-linux-kernel-4.4.55.git] / drivers / spi / spi-oc-tiny.c
index cb2e284bd814e53677c6d52ed9c982ad7dfe0c6a..e60a776ed2d498f7f4574172b7638e37c0d75ef0 100644 (file)
@@ -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);