net: xgene: Fix unused xgene_enet_of_match warning for !CONFIG_OF
[linux-2.6-block.git] / drivers / net / ethernet / apm / xgene / xgene_enet_main.c
index 4d4140b7c4509dbe8f84155818423cdae0398a27..f3305c434c95b188e02cf2d2f641a31e08916a3d 100644 (file)
@@ -2170,7 +2170,7 @@ static void xgene_enet_shutdown(struct platform_device *pdev)
 static struct platform_driver xgene_enet_driver = {
        .driver = {
                   .name = "xgene-enet",
-                  .of_match_table = of_match_ptr(xgene_enet_of_match),
+                  .of_match_table = xgene_enet_of_match,
                   .acpi_match_table = ACPI_PTR(xgene_enet_acpi_match),
        },
        .probe = xgene_enet_probe,