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>
This commit is contained in:
Rob Herring 2023-04-05 15:27:23 -05:00 committed by Rafael J. Wysocki
parent 8edd49ce8d
commit 2febc5dda3

View File

@ -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"