瀏覽代碼

of/platform: sparse fix

drivers/of/platform.c:110:59: warning: incorrect type in argument 2 (different base types)
drivers/of/platform.c:110:59:    expected restricted __be32 const [usertype] *addr
drivers/of/platform.c:110:59:    got unsigned int const [usertype] *[assigned] reg

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Kim Phillips 12 年之前
父節點
當前提交
24fb530f99
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/of/platform.c

+ 1 - 1
drivers/of/platform.c

@@ -76,7 +76,7 @@ void of_device_make_bus_id(struct device *dev)
 {
 {
 	static atomic_t bus_no_reg_magic;
 	static atomic_t bus_no_reg_magic;
 	struct device_node *node = dev->of_node;
 	struct device_node *node = dev->of_node;
-	const u32 *reg;
+	const __be32 *reg;
 	u64 addr;
 	u64 addr;
 	const __be32 *addrp;
 	const __be32 *addrp;
 	int magic;
 	int magic;