]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
mtd: xilinx_nandps: Move of_match table to proper location
authorMichal Simek <michal.simek@xilinx.com>
Wed, 28 Nov 2012 16:13:19 +0000 (17:13 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 29 Nov 2012 07:39:08 +0000 (08:39 +0100)
match table should be close to platform_driver function
where all expect it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: John Linn <john.linn@xilinx.com>
drivers/mtd/nand/xilinx_nandps.c

index 198ee54b8a5bfbc1bf3ae6014938e9f242b81927..2050180375dfb415cf1fce84b83ef2112ed8b2da 100644 (file)
@@ -941,13 +941,6 @@ static int xnandps_device_ready(struct mtd_info *mtd)
        return status ? 1 : 0;
 }
 
-/* Match table for device tree binding */
-static const struct of_device_id __devinitconst xnandps_of_match[] = {
-       { .compatible = "xlnx,ps7-nand-1.00.a" },
-       {},
-};
-MODULE_DEVICE_TABLE(of, xnandps_of_match);
-
 /**
  * xnandps_probe - Probe method for the NAND driver
  * @pdev:      Pointer to the platform_device structure
@@ -1274,6 +1267,13 @@ static int __devexit xnandps_remove(struct platform_device *pdev)
        return 0;
 }
 
+/* Match table for device tree binding */
+static const struct of_device_id __devinitconst xnandps_of_match[] = {
+       { .compatible = "xlnx,ps7-nand-1.00.a" },
+       {},
+};
+MODULE_DEVICE_TABLE(of, xnandps_of_match);
+
 /*
  * xnandps_driver - This structure defines the NAND subsystem platform driver
  */