summaryrefslogtreecommitdiffstats
path: root/drivers/pwm
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2014-08-23 00:22:45 +0200
committerThierry Reding <thierry.reding@gmail.com>2014-08-23 00:25:52 +0200
commite0c86a3b63e948e51a47d17382c7cd8711d19750 (patch)
tree58cdc23ebcfbf33fbe5e40a5ca601a61cea971b4 /drivers/pwm
parent90927fe9a001340304e0c37dee578e4432b1744e (diff)
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>
Diffstat (limited to 'drivers/pwm')
-rw-r--r--drivers/pwm/pwm-lpss.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-lpss.c b/drivers/pwm/pwm-lpss.c
index ce9bf147811..7a7a934a775 100644
--- a/drivers/pwm/pwm-lpss.c
+++ b/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>