From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Dunlap Subject: [PATCH -next] regulator: aat2870 needs module.h Date: Fri, 29 Jul 2011 12:43:13 -0700 Message-ID: <20110729124313.2f2bb000.rdunlap@xenotime.net> References: <20110729173827.716f57ff6e00095a3efc6449@canb.auug.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20110729173827.716f57ff6e00095a3efc6449@canb.auug.org.au> Sender: linux-kernel-owner@vger.kernel.org To: Stephen Rothwell , Liam Girdwood , Mark Brown Cc: linux-next@vger.kernel.org, LKML List-Id: linux-next.vger.kernel.org From: Randy Dunlap aat2870-regulator.c needs to include linux/module.h to fix multiple build errors. drivers/regulator/aat2870-regulator.c:145: error: 'THIS_MODULE' undeclared here (not in a function) drivers/regulator/aat2870-regulator.c:230: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION' drivers/regulator/aat2870-regulator.c:231: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE' drivers/regulator/aat2870-regulator.c:232: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR' Signed-off-by: Randy Dunlap --- drivers/regulator/aat2870-regulator.c | 1 + 1 file changed, 1 insertion(+) --- linux-next-20110729.orig/drivers/regulator/aat2870-regulator.c +++ linux-next-20110729/drivers/regulator/aat2870-regulator.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include