浏览代码

pwm: lpss: Fix build failure on PowerPC

An x86 build seems to pull in the linux/io.h include indirectly. On
PowerPC that doesn't happen and the build breaks due to the readl() and
writel() functions not being declared. Fix this by explicitly including
linux/io.h.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Thierry Reding 11 年之前
父节点
当前提交
e0c86a3b63
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/pwm/pwm-lpss.c

+ 1 - 0
drivers/pwm/pwm-lpss.c

@@ -13,6 +13,7 @@
  * published by the Free Software Foundation.
  */
 
+#include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/module.h>