瀏覽代碼

coresight-replicator: constify of_device_id array

of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Fabian Frederick 10 年之前
父節點
當前提交
160b7daab9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/coresight/coresight-replicator.c

+ 1 - 1
drivers/coresight/coresight-replicator.c

@@ -107,7 +107,7 @@ static int replicator_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static struct of_device_id replicator_match[] = {
+static const struct of_device_id replicator_match[] = {
 	{.compatible = "arm,coresight-replicator"},
 	{}
 };