diff options
author | Rob Herring | 2023-04-05 15:27:23 -0500 |
---|---|---|
committer | Rafael J. Wysocki | 2023-04-06 20:36:27 +0200 |
commit | 2febc5dda35e519886140e62780211a10ebeb463 (patch) | |
tree | 34b67d1c1bc7b83a486d07b3702793cbcdbdbfac /drivers | |
parent | 8edd49ce8da7b5c24e751c41e6bb882424b47fc5 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/fpga/lattice-sysconfig-spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/fpga/lattice-sysconfig-spi.c b/drivers/fpga/lattice-sysconfig-spi.c index 2702b26b7f55..44691cfcf50a 100644 --- a/drivers/fpga/lattice-sysconfig-spi.c +++ b/drivers/fpga/lattice-sysconfig-spi.c @@ -3,6 +3,7 @@ * Lattice FPGA programming over slave SPI sysCONFIG interface. */ +#include <linux/of.h> #include <linux/spi/spi.h> #include "lattice-sysconfig.h" |