Skip to content

Commit 98aeb3b

Browse files
robherringrafaeljw
authored andcommitted
staging: iio: resolver: ad2s1210: Add explicit include for of.h
With linux/acpi.h no longer implicitly including of.h, add an explicit include of of.h to fix the following error: drivers/staging/iio/resolver/ad2s1210.c:706:21: error: implicit declaration of function 'of_match_ptr' is invalid in C99 [-Werror,-Wimplicit-function-declaration] Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent ff7f85e commit 98aeb3b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/staging/iio/resolver/ad2s1210.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <linux/types.h>
88
#include <linux/mutex.h>
99
#include <linux/device.h>
10+
#include <linux/of.h>
1011
#include <linux/spi/spi.h>
1112
#include <linux/slab.h>
1213
#include <linux/sysfs.h>

0 commit comments

Comments
 (0)