Skip to content

Commit 9c512e4

Browse files
jdelvarebroonie
authored andcommitted
spi: cadence: Drop obsolete dependency on COMPILE_TEST
Since commit 0166dc1 ("of: make CONFIG_OF user selectable"), it is possible to test-build any driver which depends on OF on any architecture by explicitly selecting OF. Therefore depending on COMPILE_TEST as an alternative is no longer needed. Signed-off-by: Jean Delvare <jdelvare@suse.de> Link: https://lore.kernel.org/r/20221125083114.67e7f83c@endymion.delvare Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 67df56d commit 9c512e4

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

drivers/spi/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ config SPI_CADENCE_QUADSPI
241241

242242
config SPI_CADENCE_XSPI
243243
tristate "Cadence XSPI controller"
244-
depends on (OF || COMPILE_TEST) && HAS_IOMEM
244+
depends on OF && HAS_IOMEM
245245
depends on SPI_MEM
246246
help
247247
Enable support for the Cadence XSPI Flash controller.

drivers/spi/spi-cadence-xspi.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -607,17 +607,13 @@ static int cdns_xspi_probe(struct platform_device *pdev)
607607
return 0;
608608
}
609609

610-
#ifdef CONFIG_OF
611610
static const struct of_device_id cdns_xspi_of_match[] = {
612611
{
613612
.compatible = "cdns,xspi-nor",
614613
},
615614
{ /* end of table */}
616615
};
617616
MODULE_DEVICE_TABLE(of, cdns_xspi_of_match);
618-
#else
619-
#define cdns_xspi_of_match NULL
620-
#endif /* CONFIG_OF */
621617

622618
static struct platform_driver cdns_xspi_platform_driver = {
623619
.probe = cdns_xspi_probe,

0 commit comments

Comments
 (0)