pwm: lpss: Fix build failure on PowerPC
authorThierry Reding <thierry.reding@gmail.com>
Wed, 29 Oct 2014 00:52:57 +0000 (08:52 +0800)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:16:23 +0000 (11:16 +0100)
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>
drivers/pwm/pwm-lpss.c

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