]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
spi: rb4xx: depend on OF
authorRosen Penev <rosenp@gmail.com>
Tue, 26 Aug 2025 21:24:11 +0000 (14:24 -0700)
committerMark Brown <broonie@kernel.org>
Thu, 28 Aug 2025 09:08:45 +0000 (11:08 +0200)
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>
drivers/spi/Kconfig
drivers/spi/spi-rb4xx.c

index 891729c9c5642a08212a0080db619512c5b57bbd..cdeaa8e711fd7cd6e3ce16be5f0cd503adc1ed65 100644 (file)
@@ -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.
 
index e71d3805b150de35e7c68f8245cf73fed682a312..a795e263299e69f35339f926ee168a8d7f338406 100644 (file)
@@ -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,
        },
 };