diff options
| author | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
| commit | 1ac731c529cd4d6adbce134754b51ff7d822b145 (patch) | |
| tree | 143ab3f35ca5f3b69f583c84e6964b17139c2ec1 /drivers/spi/spi-sifive.c | |
| parent | 07b4c950f27bef0362dc6ad7ee713aab61d58149 (diff) | |
| parent | 54116d442e001e1b6bd482122043b1870998a1f3 (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.6 merge window.
Diffstat (limited to 'drivers/spi/spi-sifive.c')
| -rw-r--r-- | drivers/spi/spi-sifive.c | 12 | 
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/spi/spi-sifive.c b/drivers/spi/spi-sifive.c index e29e85cee88a..dae9e097c333 100644 --- a/drivers/spi/spi-sifive.c +++ b/drivers/spi/spi-sifive.c @@ -135,13 +135,13 @@ sifive_spi_prepare_message(struct spi_master *master, struct spi_message *msg)  	/* Update the chip select polarity */  	if (device->mode & SPI_CS_HIGH) -		spi->cs_inactive &= ~BIT(device->chip_select); +		spi->cs_inactive &= ~BIT(spi_get_chipselect(device, 0));  	else -		spi->cs_inactive |= BIT(device->chip_select); +		spi->cs_inactive |= BIT(spi_get_chipselect(device, 0));  	sifive_spi_write(spi, SIFIVE_SPI_REG_CSDEF, spi->cs_inactive);  	/* Select the correct device */ -	sifive_spi_write(spi, SIFIVE_SPI_REG_CSID, device->chip_select); +	sifive_spi_write(spi, SIFIVE_SPI_REG_CSID, spi_get_chipselect(device, 0));  	/* Set clock mode */  	sifive_spi_write(spi, SIFIVE_SPI_REG_SCKMODE, @@ -415,7 +415,7 @@ put_master:  	return ret;  } -static int sifive_spi_remove(struct platform_device *pdev) +static void sifive_spi_remove(struct platform_device *pdev)  {  	struct spi_master *master = platform_get_drvdata(pdev);  	struct sifive_spi *spi = spi_master_get_devdata(master); @@ -423,8 +423,6 @@ static int sifive_spi_remove(struct platform_device *pdev)  	/* Disable all the interrupts just in case */  	sifive_spi_write(spi, SIFIVE_SPI_REG_IE, 0);  	clk_disable_unprepare(spi->clk); - -	return 0;  }  static int sifive_spi_suspend(struct device *dev) @@ -473,7 +471,7 @@ MODULE_DEVICE_TABLE(of, sifive_spi_of_match);  static struct platform_driver sifive_spi_driver = {  	.probe = sifive_spi_probe, -	.remove = sifive_spi_remove, +	.remove_new = sifive_spi_remove,  	.driver = {  		.name = SIFIVE_SPI_DRIVER_NAME,  		.pm = &sifive_spi_pm_ops,  |