Unverified Commit c73c378d authored by Rosen Penev's avatar Rosen Penev Committed by Mark Brown
Browse files

spi: rb4xx: depend on OF



There's no support for non OF platforms. Better to depend on OF
explicitly.

Also fixes a warning/error about the dt table being unused because of
of_match_ptr on non OF platforms.

Signed-off-by: default avatarRosen Penev <rosenp@gmail.com>
Message-ID: <20250826212413.15065-2-rosenp@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent b875b970
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -917,6 +917,7 @@ config SPI_ROCKCHIP_SFC
config SPI_RB4XX
	tristate "Mikrotik RB4XX SPI master"
	depends on SPI_MASTER && ATH79
	depends on OF
	help
	  SPI controller driver for the Mikrotik RB4xx series boards.

+1 −1
Original line number Diff line number Diff line
@@ -199,7 +199,7 @@ static struct platform_driver rb4xx_spi_drv = {
	.remove = rb4xx_spi_remove,
	.driver = {
		.name = "rb4xx-spi",
		.of_match_table = of_match_ptr(rb4xx_spi_dt_match),
		.of_match_table = rb4xx_spi_dt_match,
	},
};