fpga: lattice-sysconfig-spi: Add explicit include for of.h
authorRob Herring <robh@kernel.org>
Wed, 5 Apr 2023 20:27:23 +0000 (15:27 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 6 Apr 2023 18:36:27 +0000 (20:36 +0200)
commit2febc5dda35e519886140e62780211a10ebeb463
tree34b67d1c1bc7b83a486d07b3702793cbcdbdbfac
parent8edd49ce8da7b5c24e751c41e6bb882424b47fc5
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>
drivers/fpga/lattice-sysconfig-spi.c