Skip to content

Commit 370fdb9

Browse files
ukleinekgregkh
authored andcommitted
spi: fsi: Convert to fsi bus probe mechanism
The fsi bus got a dedicated probe function. Make use of that. This fixes a runtime warning about the driver needing to be converted to the bus probe method. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Eddie James <eajames@linux.ibm.com> Link: https://patch.msgid.link/fc2a758ef00844dd5bd614a25b36a4a38355d12d.1765279318.git.u.kleine-koenig@baylibre.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1086210 commit 370fdb9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/spi/spi-fsi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,13 +528,13 @@ static size_t fsi_spi_max_transfer_size(struct spi_device *spi)
528528
return SPI_FSI_MAX_RX_SIZE;
529529
}
530530

531-
static int fsi_spi_probe(struct device *dev)
531+
static int fsi_spi_probe(struct fsi_device *fsi)
532532
{
533533
int rc;
534534
struct device_node *np;
535535
int num_controllers_registered = 0;
536536
struct fsi2spi *bridge;
537-
struct fsi_device *fsi = to_fsi_dev(dev);
537+
struct device *dev = &fsi->dev;
538538

539539
rc = fsi_spi_check_mux(fsi, dev);
540540
if (rc)
@@ -593,9 +593,9 @@ MODULE_DEVICE_TABLE(fsi, fsi_spi_ids);
593593

594594
static struct fsi_driver fsi_spi_driver = {
595595
.id_table = fsi_spi_ids,
596+
.probe = fsi_spi_probe,
596597
.drv = {
597598
.name = "spi-fsi",
598-
.probe = fsi_spi_probe,
599599
},
600600
};
601601
module_fsi_driver(fsi_spi_driver);

0 commit comments

Comments
 (0)