regulator: Fix compile errors by including compiler.h in consumer.h

If the consumer.h file is included before compiler.h the build
will fail with cryptic errors. They come from the __must_check
directive on regulator_get()/etc. Include compiler.h to fix this.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This commit is contained in:
Stephen Boyd
2013-01-18 11:52:05 -08:00
parent ac159ec362
commit c304536528

View File

@@ -35,6 +35,8 @@
#ifndef __LINUX_REGULATOR_CONSUMER_H_
#define __LINUX_REGULATOR_CONSUMER_H_
#include <linux/compiler.h>
struct device;
struct notifier_block;