diff options
| author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2026-05-08 10:25:36 +0200 |
|---|---|---|
| committer | Xu Yilun <yilun.xu@linux.intel.com> | 2026-05-11 23:28:09 +0800 |
| commit | f396fe4ef1606f586cd284bf876782a064cb269d (patch) | |
| tree | f9c70dcfc492a48e0b9be20183fd9b6e9b07ca90 | |
| parent | b6615f762cfa4b68638886d3390369a8545336bc (diff) | |
fpga: lattice-sysconfig-spi: Drop of_match_ptr() protection
Limiting the scope of devicetree support to CONFIG_OF prevents use of this
driver with ACPI via PRP0001. Drop the dependency.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20260508082716.1156192-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
| -rw-r--r-- | drivers/fpga/lattice-sysconfig-spi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/fpga/lattice-sysconfig-spi.c b/drivers/fpga/lattice-sysconfig-spi.c index 9f9f76af49fb..351e74c9dfe8 100644 --- a/drivers/fpga/lattice-sysconfig-spi.c +++ b/drivers/fpga/lattice-sysconfig-spi.c @@ -130,7 +130,6 @@ static const struct spi_device_id sysconfig_spi_ids[] = { }; MODULE_DEVICE_TABLE(spi, sysconfig_spi_ids); -#if IS_ENABLED(CONFIG_OF) static const struct of_device_id sysconfig_of_ids[] = { { .compatible = "lattice,sysconfig-ecp5", @@ -139,14 +138,13 @@ static const struct of_device_id sysconfig_of_ids[] = { {} }; MODULE_DEVICE_TABLE(of, sysconfig_of_ids); -#endif /* IS_ENABLED(CONFIG_OF) */ static struct spi_driver lattice_sysconfig_driver = { .probe = sysconfig_spi_probe, .id_table = sysconfig_spi_ids, .driver = { .name = "lattice_sysconfig_spi_fpga_mgr", - .of_match_table = of_match_ptr(sysconfig_of_ids), + .of_match_table = sysconfig_of_ids, }, }; module_spi_driver(lattice_sysconfig_driver); |
