Skip to content

Commit c73c378

Browse files
nehebbroonie
authored andcommitted
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: Rosen Penev <rosenp@gmail.com> Message-ID: <20250826212413.15065-2-rosenp@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent b875b97 commit c73c378

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/spi/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,7 @@ config SPI_ROCKCHIP_SFC
917917
config SPI_RB4XX
918918
tristate "Mikrotik RB4XX SPI master"
919919
depends on SPI_MASTER && ATH79
920+
depends on OF
920921
help
921922
SPI controller driver for the Mikrotik RB4xx series boards.
922923

drivers/spi/spi-rb4xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ static struct platform_driver rb4xx_spi_drv = {
199199
.remove = rb4xx_spi_remove,
200200
.driver = {
201201
.name = "rb4xx-spi",
202-
.of_match_table = of_match_ptr(rb4xx_spi_dt_match),
202+
.of_match_table = rb4xx_spi_dt_match,
203203
},
204204
};
205205

0 commit comments

Comments
 (0)