浏览代码

of: fix missing headers for of_address_to_resource() in MTD and SysACE drivers

The drivers for Xilinx' SystemACE and physically mapped MTDs were missing
prototypes for of_address_to_resource(). This patch adds the necessary
headers.

Signed-off-by: Graeme Smecher <graeme.smecher@mail.mcgill.ca>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Graeme Smecher 15 年之前
父节点
当前提交
7a50d06e24
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      drivers/block/xsysace.c
  2. 1 0
      drivers/mtd/maps/physmap_of.c

+ 1 - 0
drivers/block/xsysace.c

@@ -94,6 +94,7 @@
 #include <linux/hdreg.h>
 #include <linux/platform_device.h>
 #if defined(CONFIG_OF)
+#include <linux/of_address.h>
 #include <linux/of_device.h>
 #include <linux/of_platform.h>
 #endif

+ 1 - 0
drivers/mtd/maps/physmap_of.c

@@ -22,6 +22,7 @@
 #include <linux/mtd/partitions.h>
 #include <linux/mtd/concat.h>
 #include <linux/of.h>
+#include <linux/of_address.h>
 #include <linux/of_platform.h>
 #include <linux/slab.h>