pwm: lpss: Fix build failure on PowerPC
authorThierry Reding <thierry.reding@gmail.com>
Fri, 22 Aug 2014 22:22:45 +0000 (00:22 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 22 Aug 2014 22:25:52 +0000 (00:25 +0200)
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>
drivers/pwm/pwm-lpss.c

index ce9bf14..7a7a934 100644 (file)
@@ -13,6 +13,7 @@
  * published by the Free Software Foundation.
  */
 
+#include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/module.h>