Commit 2febc5dd authored by Rob Herring's avatar Rob Herring Committed by Rafael J. Wysocki

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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 8edd49ce
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* Lattice FPGA programming over slave SPI sysCONFIG interface. * Lattice FPGA programming over slave SPI sysCONFIG interface.
*/ */
#include <linux/of.h>
#include <linux/spi/spi.h> #include <linux/spi/spi.h>
#include "lattice-sysconfig.h" #include "lattice-sysconfig.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment