浏览代码

mtd: nand: pxa3xx_nand: Remove redundant of_match_ptr

The data structure of_match_ptr() protects is always compiled in.
Hence of_match_ptr() is not needed.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Sachin Kamat 12 年之前
父节点
当前提交
5576bc7bef
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/mtd/nand/pxa3xx_nand.c

+ 1 - 1
drivers/mtd/nand/pxa3xx_nand.c

@@ -1412,7 +1412,7 @@ static int pxa3xx_nand_resume(struct platform_device *pdev)
 static struct platform_driver pxa3xx_nand_driver = {
 static struct platform_driver pxa3xx_nand_driver = {
 	.driver = {
 	.driver = {
 		.name	= "pxa3xx-nand",
 		.name	= "pxa3xx-nand",
-		.of_match_table = of_match_ptr(pxa3xx_nand_dt_ids),
+		.of_match_table = pxa3xx_nand_dt_ids,
 	},
 	},
 	.probe		= pxa3xx_nand_probe,
 	.probe		= pxa3xx_nand_probe,
 	.remove		= pxa3xx_nand_remove,
 	.remove		= pxa3xx_nand_remove,