Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Uwe Kleine-König and committed by
Greg Kroah-Hartman
370fdb98 1086210a

+3 -3
+3 -3
drivers/spi/spi-fsi.c
··· 528 528 return SPI_FSI_MAX_RX_SIZE; 529 529 } 530 530 531 - static int fsi_spi_probe(struct device *dev) 531 + static int fsi_spi_probe(struct fsi_device *fsi) 532 532 { 533 533 int rc; 534 534 struct device_node *np; 535 535 int num_controllers_registered = 0; 536 536 struct fsi2spi *bridge; 537 - struct fsi_device *fsi = to_fsi_dev(dev); 537 + struct device *dev = &fsi->dev; 538 538 539 539 rc = fsi_spi_check_mux(fsi, dev); 540 540 if (rc) ··· 593 593 594 594 static struct fsi_driver fsi_spi_driver = { 595 595 .id_table = fsi_spi_ids, 596 + .probe = fsi_spi_probe, 596 597 .drv = { 597 598 .name = "spi-fsi", 598 - .probe = fsi_spi_probe, 599 599 }, 600 600 }; 601 601 module_fsi_driver(fsi_spi_driver);