]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/spi/spi-sh-msiof.c
[media] mt9p031: Power down the sensor if no supported device has been detected
[karo-tx-linux.git] / drivers / spi / spi-sh-msiof.c
index 8b40d0884f8bfc1f2eb3a2d744cc3ec8feb607e9..2bc5a6b86300bfdd2896332832a8a1058cd28e8d 100644 (file)
@@ -764,8 +764,6 @@ static const struct of_device_id sh_msiof_match[] = {
        {},
 };
 MODULE_DEVICE_TABLE(of, sh_msiof_match);
-#else
-#define sh_msiof_match NULL
 #endif
 
 static struct dev_pm_ops sh_msiof_spi_dev_pm_ops = {
@@ -780,7 +778,7 @@ static struct platform_driver sh_msiof_spi_drv = {
                .name           = "spi_sh_msiof",
                .owner          = THIS_MODULE,
                .pm             = &sh_msiof_spi_dev_pm_ops,
-               .of_match_table = sh_msiof_match,
+               .of_match_table = of_match_ptr(sh_msiof_match),
        },
 };
 module_platform_driver(sh_msiof_spi_drv);