diff options
| author | Rob Herring <[email protected]> | 2023-04-05 20:27:23 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2023-04-06 18:36:27 +0000 |
| commit | 2febc5dda35e519886140e62780211a10ebeb463 (patch) | |
| tree | 34b67d1c1bc7b83a486d07b3702793cbcdbdbfac /drivers/fpga/lattice-sysconfig-spi.c | |
| parent | tpm: atmel: Add explicit include for of.h (diff) | |
| download | kernel-2febc5dda35e519886140e62780211a10ebeb463.tar.gz kernel-2febc5dda35e519886140e62780211a10ebeb463.zip | |
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 <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/fpga/lattice-sysconfig-spi.c')
| -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" |
