.align_size             = wfx_sdio_align_size,
 };
 
-static const struct of_device_id wfx_sdio_of_match[];
+static const struct of_device_id wfx_sdio_of_match[] = {
+       { .compatible = "silabs,wfx-sdio" },
+       { .compatible = "silabs,wf200" },
+       { },
+};
+MODULE_DEVICE_TABLE(of, wfx_sdio_of_match);
+
 static int wfx_sdio_probe(struct sdio_func *func,
                          const struct sdio_device_id *id)
 {
 };
 MODULE_DEVICE_TABLE(sdio, wfx_sdio_ids);
 
-#ifdef CONFIG_OF
-static const struct of_device_id wfx_sdio_of_match[] = {
-       { .compatible = "silabs,wfx-sdio" },
-       { .compatible = "silabs,wf200" },
-       { },
-};
-MODULE_DEVICE_TABLE(of, wfx_sdio_of_match);
-#endif
-
 struct sdio_driver wfx_sdio_driver = {
        .name = "wfx-sdio",
        .id_table = wfx_sdio_ids,
        .remove = wfx_sdio_remove,
        .drv = {
                .owner = THIS_MODULE,
-               .of_match_table = of_match_ptr(wfx_sdio_of_match),
+               .of_match_table = wfx_sdio_of_match,
        }
 };