Skip to content

Commit 2febc5d

Browse files
robherringrafaeljw
authored andcommitted
fpga: lattice-sysconfig-spi: Add explicit include for of.h
With linux/acpi.h (in spi/spi.h) no longer implicitly including of.h, add an explicit include of of.h to fix the following errors: drivers/fpga/lattice-sysconfig-spi.c:146:35: error: implicit declaration of function 'of_match_ptr' [-Werror=implicit-function-declaration] Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 8edd49c commit 2febc5d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/fpga/lattice-sysconfig-spi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Lattice FPGA programming over slave SPI sysCONFIG interface.
44
*/
55

6+
#include <linux/of.h>
67
#include <linux/spi/spi.h>
78

89
#include "lattice-sysconfig.h"

0 commit comments

Comments
 (0)