summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2014-10-29 08:52:57 +0800
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>2015-02-04 11:16:23 +0100
commit5b6735c6185986114c85533dedb916d564c4ad7f (patch)
tree26879a845fcbffcdf00666cc8c0be1b7d851bb12
parent5eb089719e4096e81a0399751007f361898f1870 (diff)
downloadkernel-common-5b6735c6185986114c85533dedb916d564c4ad7f.tar.gz
kernel-common-5b6735c6185986114c85533dedb916d564c4ad7f.tar.bz2
kernel-common-5b6735c6185986114c85533dedb916d564c4ad7f.zip
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> (cherry picked from commit e0c86a3b63e948e51a47d17382c7cd8711d19750) Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
-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 ce9bf147811f..7a7a934a7757 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>